changeset 18028:4b0e76619c7f

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.
author Jim Meyering <meyering@fb.com>
date Sun, 28 Jun 2015 13:11:04 -0700
parents 870a2ccf6d6f
children e4a13d95b503
files ChangeLog lib/mountlist.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Jun 28 10:38:46 2015 -0700
+++ b/ChangeLog	Sun Jun 28 13:11:04 2015 -0700
@@ -1,5 +1,10 @@
 2015-06-28  Jim Meyering  <meyering@fb.com>
 
+	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.
--- a/lib/mountlist.c	Sun Jun 28 10:38:46 2015 -0700
+++ b/lib/mountlist.c	Sun Jun 28 13:11:04 2015 -0700
@@ -1082,7 +1082,7 @@
   return mount_list;
 
 
- free_then_fail:
+ free_then_fail: _GL_UNUSED_LABEL
   {
     int saved_errno = errno;
     *mtail = NULL;