]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: avoid warnings about potentially-counterproductive "inline"
authorJim Meyering <meyering@redhat.com>
Sat, 14 Feb 2009 10:26:14 +0000 (11:26 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 2 Mar 2009 08:10:06 +0000 (09:10 +0100)
* src/dd.c (quit): Remove "inline" attribute.
* src/test.c (advance, unary_advance): Likewise.

src/dd.c
src/test.c

index 6837b7b9092d96c766a63c431f9254af678a0253..e9a55044a747e3862a60ca40f5d82d62024d7eb3 100644 (file)
--- a/src/dd.c
+++ b/src/dd.c
@@ -669,7 +669,7 @@ cleanup (void)
           _("closing output file %s"), quote (output_file));
 }
 
-static inline void ATTRIBUTE_NORETURN
+static void ATTRIBUTE_NORETURN
 quit (int code)
 {
   cleanup ();
index b670909871fc50e9bb626c0422642571bb59a178..1825e901af3c68208d9332687e0dd541a9a8d98e 100644 (file)
@@ -91,7 +91,7 @@ test_syntax_error (char const *format, char const *arg)
    past the end of the argument list.  This check is supressed if the
    argument is false.  */
 
-static inline void
+static void
 advance (bool f)
 {
   ++pos;
@@ -100,7 +100,7 @@ advance (bool f)
     beyond ();
 }
 
-static inline void
+static void
 unary_advance (void)
 {
   advance (true);
@@ -567,9 +567,9 @@ test_unop (char const *op)
     case 'u': case 'w': case 'x': case 'z':
     case 'G': case 'L': case 'O': case 'S': case 'N':
       return true;
+    default:
+      return false;
     }
-
-  return false;
 }
 
 static bool