]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
test: omit unreachable code
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 28 Aug 2023 19:40:57 +0000 (12:40 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 28 Aug 2023 21:06:43 +0000 (14:06 -0700)
* src/test.c (unary_operator): Omit unreachable ‘return false;’.
Oracle Solaris Studio 12.6 warns about it.

src/test.c

index 445eba08b92e1e0a03042d1beb3f437c85600eaa..a4eb40a52313569dc68894a928a317307d6dc337 100644 (file)
@@ -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