tcpdump mailing list archives
Compile warnings using CFLAGS='-Wshadow -Wpointer-arith -Wcast-qual -W -Wall'
From: "John Smith" <lbalbalba () gmail com>
Date: Thu, 26 Jun 2008 07:06:28 +0200
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. - 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)