tcpdump mailing list archives
Re: Compile warnings using CFLAGS='-Wshadow -Wpointer-arith -Wcast-qual -W -Wall'
From: "John Smith" <lbalbalba () gmail com>
Date: Thu, 26 Jun 2008 07:13:21 +0200
On Thu, Jun 26, 2008 at 7:06 AM, John Smith <lbalbalba () gmail com> wrote:
Hi, When I add the CFLAGS '-Wshadow -Wpointer-arith -Wcast-qual -W -Wall' to the build of both libpcap and tcpdump, I get a lot of warnings of the following type: - unused parameter 'foo' - comparison between signed and unsigned - 'foo' might be used uninitialized in this function - cast discards qualifiers from pointer target type - declaration of 'foo' shadows a global declaration - declaration of 'foo' shadows a previous local Perhaps some of the developers may need to look into some of these ? For details, Ive added the complete compile logs as an attachment to this message. Regards, John Smith.
Sorry, forgot to actually add the attachments, so ill include them now. :( Regards, John SMith
Attachment:
libpcap.compile.log.gz
Description:
Attachment:
tcpdump.compile.log.gz
Description:
- This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Compile warnings using CFLAGS='-Wshadow -Wpointer-arith -Wcast-qual -W -Wall' John Smith (Jun 25)
- Re: Compile warnings using CFLAGS='-Wshadow -Wpointer-arith -Wcast-qual -W -Wall' John Smith (Jun 25)