diff options
| author | Jim Meyering <meyering@redhat.com> | 2009-02-14 11:26:14 +0100 |
|---|---|---|
| committer | Jim Meyering <meyering@redhat.com> | 2009-03-02 09:10:06 +0100 |
| commit | 2d10b7617bf846d197b881507c6c37e951e773dd (patch) | |
| tree | 220b8aff42f3e9656a1b11c686953c3fa9dbf5cf /src/test.c | |
| parent | maint: cp: avoid gcc warning about unused macro definitions (diff) | |
| download | coreutils-2d10b7617bf846d197b881507c6c37e951e773dd.tar.gz coreutils-2d10b7617bf846d197b881507c6c37e951e773dd.zip | |
maint: avoid warnings about potentially-counterproductive "inline"
* src/dd.c (quit): Remove "inline" attribute.
* src/test.c (advance, unary_advance): Likewise.
Diffstat (limited to 'src/test.c')
| -rw-r--r-- | src/test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test.c b/src/test.c index b67090987..1825e901a 100644 --- a/src/test.c +++ b/src/test.c @@ -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 |
