From 2d10b7617bf846d197b881507c6c37e951e773dd Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 14 Feb 2009 11:26:14 +0100 Subject: maint: avoid warnings about potentially-counterproductive "inline" * src/dd.c (quit): Remove "inline" attribute. * src/test.c (advance, unary_advance): Likewise. --- src/dd.c | 2 +- src/test.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/dd.c b/src/dd.c index 6837b7b90..e9a55044a 100644 --- 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 (); 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 -- cgit v1.2.3-54-g00ecf