From 70551613133c3d8193c8923f1d219dec0e2f0943 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 28 Jun 2015 13:11:04 -0700 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ lib/mountlist.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.39.5