From: Patrick McHardy <kaber@trash.net>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Eric Leblond <eric@inl.fr>, netfilter-devel@vger.kernel.org
Subject: Re: [ULOGD2 PATCH 11/11] Add option to CFLAGS to avoid useless warning.
Date: Thu, 31 Jul 2008 12:09:49 +0200 [thread overview]
Message-ID: <48918F6D.8040307@trash.net> (raw)
In-Reply-To: <48918A9D.5040204@netfilter.org>
Pablo Neira Ayuso wrote:
> Eric Leblond wrote:
>> This patch adds the "-Wno-unused-parameter" option to CFLAGS. This suppress
>> gcc warning that can not be fixed due to the usage of generic system like
>> callback where function definition has to be standardized.
>>
>> Signed-off-by: Eric Leblond <eric@inl.fr>
>> ---
>> configure.in | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/configure.in b/configure.in
>> index 96cc2d0..8889575 100644
>> --- a/configure.in
>> +++ b/configure.in
>> @@ -30,7 +30,7 @@ dnl Checks for library functions.
>> AC_FUNC_VPRINTF
>> AC_CHECK_FUNCS(socket strerror)
>>
>> -CFLAGS="$CFLAGS -Wall -Wextra"
>> +CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter"
>
> Applied from 1 to 10. Thanks Eric.
>
> With regards to this patch. This warning vanishes is we remove -Wextra.
>
> We are not using this flag in any other userspace tools and IIRC Patrick
> said that -Wextra did not provide very useful warning. Any comment on this?
It includes some useful warnings, but also some that tend to
produce lots of false positives. We could enable the useful
ones manually, or simply wait and see how much false positives
we'll actually get.
next prev parent reply other threads:[~2008-07-31 10:09 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-23 11:33 [ULOGD2 PATCH 0/4] Misc cleaning Eric Leblond
2008-07-23 13:00 ` Pablo Neira Ayuso
2008-07-23 14:25 ` Pablo Neira Ayuso
2008-07-23 14:43 ` Patrick McHardy
2008-07-23 16:27 ` Eric Leblond
2008-07-27 13:51 ` [ULOGD2 PATCH 0/11] Big warning hunting Eric Leblond
2008-07-27 13:51 ` [ULOGD2 PATCH 01/11] Fix some simple warnings Eric Leblond
2008-07-27 13:51 ` [ULOGD2 PATCH 02/11] Cleanly stop SYSLOG module Eric Leblond
2008-07-27 13:51 ` [ULOGD2 PATCH 03/11] Suppress unused parameter in ipulog_read Eric Leblond
2008-07-27 13:51 ` [ULOGD2 PATCH 04/11] Fix warning related to signed unsigned comparison Eric Leblond
2008-07-27 13:51 ` [ULOGD2 PATCH 05/11] Suppress some warnings in format string usage Eric Leblond
2008-07-27 13:51 ` [ULOGD2 PATCH 06/11] Fix warning about lack of parenthesis Eric Leblond
2008-07-27 13:51 ` [ULOGD2 PATCH 07/11] Fix warning about integer format Eric Leblond
2008-07-27 13:51 ` [ULOGD2 PATCH 08/11] Suppress twice defined key Eric Leblond
2008-07-27 13:51 ` [ULOGD2 PATCH 09/11] Fix some initialisation Eric Leblond
2008-07-27 13:51 ` [ULOGD2 PATCH 10/11] Make gcc happy Eric Leblond
2008-07-27 13:51 ` [ULOGD2 PATCH 11/11] Add option to CFLAGS to avoid useless warning Eric Leblond
2008-07-31 9:49 ` Pablo Neira Ayuso
2008-07-31 10:09 ` Patrick McHardy [this message]
2008-07-31 13:50 ` [ULOGD2 PATCH] Use attribute to avoid warning about unused parameter Eric Leblond
2008-07-31 14:46 ` Pablo Neira Ayuso
2008-07-31 15:11 ` Eric Leblond
2008-08-01 8:34 ` [ULOGD2 PATCH 11/11] Add option to CFLAGS to avoid useless warning Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48918F6D.8040307@trash.net \
--to=kaber@trash.net \
--cc=eric@inl.fr \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.