From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Eric Leblond <eric@inl.fr>
Cc: netfilter-devel@vger.kernel.org, Patrick McHardy <kaber@trash.net>
Subject: Re: [ULOGD2 PATCH 11/11] Add option to CFLAGS to avoid useless warning.
Date: Thu, 31 Jul 2008 11:49:17 +0200 [thread overview]
Message-ID: <48918A9D.5040204@netfilter.org> (raw)
In-Reply-To: <1217166686-28508-12-git-send-email-eric@inl.fr>
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?
--
"Los honestos son inadaptados sociales" -- Les Luthiers
next prev parent reply other threads:[~2008-07-31 9:49 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 [this message]
2008-07-31 10:09 ` Patrick McHardy
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=48918A9D.5040204@netfilter.org \
--to=pablo@netfilter.org \
--cc=eric@inl.fr \
--cc=kaber@trash.net \
--cc=netfilter-devel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox