[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI, updated to latest from gnulib, and copyright years

From: Jim Meyering
Subject: FYI, updated to latest from gnulib, and copyright years
Date: Sun, 06 Jan 2013 12:01:26 +0100

"make distcheck" now passes.

I also had to make the following change to avoid this build warn/failure:

    CC       debug.lo
  debug.c: In function 'ped_debug':
  debug.c:66:17: error: function might be possible candidate for 'gnu_printf'\
    format attribute [-Werror=suggest-attribute=format]
                   vsnprintf ( msg_concat, 8192, msg, arg_list );
  cc1: all warnings being treated as errors
  exception.c: In function 'ped_exception_throw':

>From 1c659d5cc6830c6f4f26660e9049582afbad3fd3 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Sun, 6 Jan 2013 11:37:15 +0100
Subject: [PATCH] maint: avoid new warning/error with gcc-4.8.0 20130105

* configure.ac (WERROR_CFLAGS): Disable -Wsuggest-attribute=format.
It was suggesting to apply the gnu_printf attribute to vsnprintf.
 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index fef0b53..b04eb3f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -235,6 +235,7 @@ if test "$gl_gcc_warnings" = yes; then
   nw="$nw -Wstrict-overflow"        # expr.c, pr.c, tr.c, factor.c
   nw="$nw -Wstack-protector"        # libparted/label/gpt.c
   # ?? -Wstrict-overflow
+  nw="$nw -Wsuggest-attribute=format" # suggests to use gnu_printf for 

   gl_MANYWARN_COMPLEMENT([ws], [$ws], [$nw])

reply via email to

[Prev in Thread] Current Thread [Next in Thread]