summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2013-01-06 11:37:15 +0100
committerJim Meyering <jim@meyering.net>2013-01-06 11:37:15 +0100
commit1c659d5cc6830c6f4f26660e9049582afbad3fd3 (patch)
tree5e7a184980a1657195ff75b209389867932e3752
parentab9aecfc64b5a7f6ad70ea93bf76c007614220fd (diff)
downloadparted-1c659d5cc6830c6f4f26660e9049582afbad3fd3.tar.gz
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.
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
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 vsnprintf
gl_MANYWARN_ALL_GCC([ws])
gl_MANYWARN_COMPLEMENT([ws], [$ws], [$nw])