summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-01-14 19:33:21 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2022-01-14 19:33:43 -0800
commit261712b93effaccb148f68f2002cfb94540efc78 (patch)
treea3238206c6ebd9f94dc65107ddcef45e8112065e /tests
parentea3c017da511fac290e5bc7b6503de9079449ef2 (diff)
downloadgnulib-261712b93effaccb148f68f2002cfb94540efc78.tar.gz
tests: pacify nvc 22.1 unreachable statement
* tests/test-sys_wait.h (test_sys_wait_macros): Widen scope of ‘#if 0’ so that there is not an unreachable ‘break;’.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-sys_wait.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-sys_wait.h b/tests/test-sys_wait.h
index 50c7d5e8b1..9becf28ebb 100644
--- a/tests/test-sys_wait.h
+++ b/tests/test-sys_wait.h
@@ -40,14 +40,14 @@ test_sys_wait_macros (void)
}
i = WEXITSTATUS (i) + WSTOPSIG (i) + WTERMSIG (i);
+#if 0
switch (i)
{
-#if 0
/* Gnulib doesn't guarantee these, yet. */
case WNOHANG:
case WUNTRACED:
-#endif
break;
}
+#endif
return 0;
}