From: Jim Meyering Date: Thu, 19 Mar 2009 08:15:24 +0000 (+0100) Subject: fsusage: avoid syntax error due to statement-before-declaration X-Git-Tag: v0.1~6073 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=22e91b1ffcc74d3cfa0466741dec6f54841e042f;p=gnulib.git fsusage: avoid syntax error due to statement-before-declaration * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement after all declarations. Reported by Matthew Woehlke in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231 --- diff --git a/ChangeLog b/ChangeLog index 86757f4d6..29bd6434c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-03-19 Jim Meyering + + fsusage: avoid syntax error due to statement-before-declaration + * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement + after all declarations. Reported by Matthew Woehlke in + http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231 + 2009-03-18 Eric Blake build-aux/compile: sync from automake diff --git a/lib/fsusage.c b/lib/fsusage.c index ade4195e3..db0d3bc53 100644 --- a/lib/fsusage.c +++ b/lib/fsusage.c @@ -94,7 +94,6 @@ int get_fs_usage (char const *file, char const *disk, struct fs_usage *fsp) { - (void) disk; /* avoid argument-unused warning */ #if defined STAT_STATVFS /* POSIX */ struct statvfs fsd; @@ -233,6 +232,7 @@ get_fs_usage (char const *file, char const *disk, struct fs_usage *fsp) #endif + (void) disk; /* avoid argument-unused warning */ return 0; }