From f5e9e2780bbc128dbb4f6bebcce238561d9a2303 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 7 Dec 2012 12:32:49 +0000 Subject: [PATCH] configure.ac: Fix comment. I spent a lot of time looking at how gnulib "manywarnings" works, and this comment reflects my improved understanding. --- configure.ac | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 25b1f5a2f..5f373d399 100644 --- a/configure.ac +++ b/configure.ac @@ -143,11 +143,13 @@ if test "$gl_gcc_warnings" = yes; then gl_WARN_ADD([$w]) done - # Normally we disable warnings in $nw above. However for some - # unknown reason that doesn't always work, and we need to explicitly - # list a few disabled warnings below. + # Normally we disable warnings in $nw above. However $nw only + # filters out exact matching warning strings from a list inside + # gnulib (see m4/manywarnings.m4). So we need to explicitly list a + # few disabled warnings below. - gl_WARN_ADD([-Wno-unused-parameter]) # Unused parameters are not a bug. + # Unused parameters are not a bug. + gl_WARN_ADD([-Wno-unused-parameter]) # Missing field initializers is not a bug in C. gl_WARN_ADD([-Wno-missing-field-initializers])