]> Savannah Git Hosting - gnulib.git/commitdiff
mountlist: avoid an unused-label warning on OS X
authorJim Meyering <meyering@fb.com>
Sun, 28 Jun 2015 20:11:04 +0000 (13:11 -0700)
committerJim Meyering <meyering@fb.com>
Sun, 28 Jun 2015 20:11:04 +0000 (13:11 -0700)
* 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.

ChangeLog
lib/mountlist.c

index a318ce59008f6a6c94e92113b6cc8b5c5c3de97d..55259229a7f54c604e43999550c74a13b48d6e63 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index d548252b241d6a3ddaa92825e7a1d5ed7dcd8020..6f04f5552d5bfcd36918943afef075243dc46586 100644 (file)
@@ -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;