From: Jim Meyering Date: Sun, 28 Jun 2015 20:11:04 +0000 (-0700) Subject: mountlist: avoid an unused-label warning on OS X X-Git-Tag: v1.0~7030 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=70551613133c3d8193c8923f1d219dec0e2f0943;p=gnulib.git mountlist: avoid an unused-label warning on OS X * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]: Building on OS X, I saw a warning about the "free_then_fail" label being unused. Give it the _GL_UNUSED_LABEL attribute. --- diff --git a/ChangeLog b/ChangeLog index a318ce5900..55259229a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2015-06-28 Jim Meyering + mountlist: avoid an unused-label warning on OS X + * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]: + Building on OS X, I saw a warning about the "free_then_fail" label + being unused. Give it the _GL_UNUSED_LABEL attribute. + error.c: correct printf-style format: %d -> %u * lib/error.c (error_at_line): Correct __fxprintf format to use %u, rather than %d, to match the type of "line_number", unsigned int. diff --git a/lib/mountlist.c b/lib/mountlist.c index d548252b24..6f04f5552d 100644 --- a/lib/mountlist.c +++ b/lib/mountlist.c @@ -1082,7 +1082,7 @@ read_file_system_list (bool need_fs_type) return mount_list; - free_then_fail: + free_then_fail: _GL_UNUSED_LABEL { int saved_errno = errno; *mtail = NULL;