Wireshark-users: [Wireshark-users] warnings during make
From: Faraz Shamim <faraz_shamim@xxxxxxxxx>
Date: Wed, 28 May 2008 14:59:56 -0700 (PDT)
Hi All,

While running make I was getting few warnings. I need
to know if I should ignore it or try fixing it? I am
cutting and pastings only the warnings here. I would
appreciate any help on these.

Thanks,

Faraz

Warning type 1: dereferencing type-punned pointer will
break strict-aliasing rules

I was getting these in 3 or 4 .c files.. for e.g:

packet-nbd.c: In function `dissect_nbd_tcp_pdu':
packet-nbd.c:259: warning: dereferencing type-punned
pointer will break strict-aliasing rules

[snip..]


Warning type 2: defined but not used

I was getting these in several .cnf files.. for e.g:

ansi_map.cnf:4639: warning:
'dissect_ansi_map_DetectionPointType' defined but not
used
ansi_map.cnf:4744: warning:
'dissect_ansi_map_InvokeData' defined but not used

Warning type 3: integer constant is too large for
"unsigned long" type

I was getting these in few .c files.. for e.g:

packet-pcap-fn.c: In function
`dissect_pcap_T_ue_GPSTimingOfCell':
packet-pcap-fn.c:1825: warning: integer constant is
too large for "unsigned long" type


Warning type 4: this decimal constant is unsigned only
in ISO C90


I was getting these in few .c files as well for
example:

packet-pcap-fn.c: In function
`dissect_pcap_INTEGER_M2147483648_2147483647':
packet-pcap-fn.c:3039: warning: this decimal constant
is unsigned only in ISO C90

Warning type 5: declared `static' but never defined

Getting this error on just one .c file:

packet-dcerpc-eventlog.c:257: warning:
'eventlog_dissect_element_ReadEventLogW_data__'
declared `static' but never defined

Warning type 6: 

This is only related to text2pcap.c:

text2pcap.c: In function `parse_preamble':
text2pcap.c:757: warning: implicit declaration of
function `strptime'
text2pcap.c:757: warning: assignment makes pointer
from integer without a cast
text2pcap.c: In function `parse_options':
text2pcap.c:1266: warning: implicit declaration of
function `strdup'
text2pcap.c:1308: warning: dereferencing type-punned
pointer will break strict-aliasing rules
mv -f .deps/text2pcap.Tpo .deps/text2pcap.Po