From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: Netfilter Developer Mailing List <netfilter-devel@vger.kernel.org>
Subject: Re: Compiler warnings on libnetfilter_*
Date: Mon, 22 Dec 2008 23:21:11 +0100 [thread overview]
Message-ID: <495012D7.2080002@netfilter.org> (raw)
In-Reply-To: <alpine.LNX.1.10.0812221909100.26910@fbirervta.pbzchgretzou.qr>
Jan Engelhardt wrote:
> Hi,
>
> I have compiled all the libnetfilter* libraries and conntrack-tools,
> and this is the collection of compiler warnings I obtained.
> (Note: running a silenced automake is a big win.)
Is there already an option to silence automake? I found your patches in
the automake ML but I didn't find them in the official tree. I'm not a
fan of the verbose mode either.
> + make -j2
> Making all in src
> make[1]: Entering directory `/usr/src/packages/BUILD/netfilter-toolsuite-0.20081222/libnfnetlink/src'
> CC iftable.lo
> CC libnfnetlink.lo
> iftable.c:176: warning: 'iftable_up' defined but not used
> CC rtnl.lo
> CCLD libnfnetlink.la
> make[1]: Leaving directory `/usr/src/packages/BUILD/netfilter-toolsuite-0.20081222/libnfnetlink/src'
> + popd
> /usr/src/packages/BUILD/netfilter-toolsuite-0.20081222
This one is known. I left it there because I was thinking about to make
that function public. With the new libnfnetlink API (that I haven't post
yet), we will not need it so we can remove.
> + make -j2
> Making all in conntrack
> make[2]: Entering directory `/usr/src/packages/BUILD/netfilter-toolsuite-0.20081222/libnetfilter_conntrack/src/conntrack'
> CC api.lo
> CC callback.lo
> mkdir: cannot create directory `.libs': File exists
I did not know this one.
> callback.c: In function '__callback':
> callback.c:30: warning: passing argument 2 of '__parse_conntrack' from incompatible pointer type
> api.c: In function 'nfct_parse_conntrack':
> api.c:668: warning: passing argument 2 of '__parse_conntrack' from incompatible pointer type
A casting should fix this?
[...]
> + make -j2
> Making all in extensions
> make[1]: Entering directory `/usr/src/packages/BUILD/netfilter-toolsuite-0.20081222/conntrack-tools/extensions'
I did not notice compilation that conntrack-tools was not warning about
unused variables.
--
"Los honestos son inadaptados sociales" -- Les Luthiers
next prev parent reply other threads:[~2008-12-22 22:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-22 18:13 Compiler warnings on libnetfilter_* Jan Engelhardt
2008-12-22 22:07 ` [libnfnetlink] Suppress iftable_up function which is no used Eric Leblond
2008-12-22 22:11 ` Pablo Neira Ayuso
2008-12-22 22:21 ` Pablo Neira Ayuso [this message]
2008-12-24 19:13 ` Compiler warnings on libnetfilter_* Jan Engelhardt
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=495012D7.2080002@netfilter.org \
--to=pablo@netfilter.org \
--cc=jengelh@medozas.de \
--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;
as well as URLs for NNTP newsgroup(s).