From: Roland McGrath Date: Fri, 23 Jan 2009 03:17:07 +0000 (-0800) Subject: no_Wformat means -Wno-format. X-Git-Tag: elfutils-0.139~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d759aa6df852e7776ab94eeee71a27989a11688b;p=thirdparty%2Felfutils.git no_Wformat means -Wno-format. --- diff --git a/src/ChangeLog b/src/ChangeLog index 0f9da7543..4bd36618b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2009-01-22 Roland McGrath + * Makefile.am (AM_CFLAGS): Pass -Wno-format for *_no_Wformat. + * readelf.c (print_debug_frame_section): Initialize IS_SIGNED to false and reset it only for the 'true' cases. diff --git a/src/Makefile.am b/src/Makefile.am index 091642fe0..c92accbe1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -34,7 +34,7 @@ endif AM_CFLAGS += -Wall -Wshadow -std=gnu99 $(native_ld_cflags) \ $(if $($(*F)_no_Werror),,-Werror) \ $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \ - $(if $($(*F)_no_Wformat),,-Wformat=2) $(CFLAGS_$(*F)) + $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $(CFLAGS_$(*F)) INCLUDES = -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \ -I$(srcdir)/../libdw -I$(srcdir)/../libdwfl \