aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-08-28 12:40:57 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2023-08-28 14:06:43 -0700
commite3f15c9c4a0ca69bfdf7fada8b8697f627a7c84d (patch)
treedb5faa2ad2707efb7e83c88f9d2cf205143033b1
parenttests: avoid test failure on Android (diff)
downloadcoreutils-e3f15c9c4a0ca69bfdf7fada8b8697f627a7c84d.tar.gz
coreutils-e3f15c9c4a0ca69bfdf7fada8b8697f627a7c84d.zip
test: omit unreachable code
* src/test.c (unary_operator): Omit unreachable ‘return false;’. Oracle Solaris Studio 12.6 warns about it.
-rw-r--r--src/test.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/test.c b/src/test.c
index 445eba08b..a4eb40a52 100644
--- a/src/test.c
+++ b/src/test.c
@@ -390,7 +390,6 @@ unary_operator (void)
{
default:
test_syntax_error (_("%s: unary operator expected"), quote (argv[pos]));
- return false;
/* All of the following unary operators use unary_advance (), which
checks to make sure that there is an argument, and then advances