Wireshark-dev: Re: [Wireshark-dev] Compile warnings (Was: rev 40479)
From: Joerg Mayer <[email protected]>
Date: Sat, 14 Jan 2012 13:03:44 +0100
> What are the warnings in packet-gsm_a_common.c and packet-x11.c?

Looks like my reply got stuck in moderation due to size.

So here is the (incomplete) short version:

[email protected]:/tmp/qt/epan> make dissectors/packet-gsm_a_common.c.o
Building C object epan/CMakeFiles/epan.dir/dissectors/packet-gsm_a_common.c.o
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-gsm_a_common.c: In function ‘elem_t’:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-gsm_a_common.c:1539:13: warning: variable ‘elem_funcs’ set but not used [-Wunused-but-set-variable]
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-gsm_a_common.c:1538:9: warning: variable ‘elem_ett’ set but not used [-Wunused-but-set-variable]
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-gsm_a_common.c: In function ‘elem_v_short’:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-gsm_a_common.c:1756:9: warning: variable ‘elem_ett’ set but not used [-Wunused-but-set-variable]
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-gsm_a_common.c:1755:22: warning: variable ‘elem_names’ set but not used [-Wunused-but-set-variable]


In file included from /home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-x11.c:3063:0:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/x11-extension-implementation.h: In  function ‘mesa_CallLists’:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/x11-extension-implementation.h:38:9: warning: variable ‘n’ set but not used [-Wunused-but-set-variable]
In file included from /home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-x11.c:3063:0:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/x11-extension-implementation.h: In function ‘bigreqEnable_Reply’:
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/x11-extension-implementation.h:4832: 9: warning: variable ‘f_maximum_request_length’ set but not used
[-Wunused-but-set-variable] /home/jmayer/work/wireshark/svn/trunk/epan/dissectors/x11-extension-implementation.h:4831:
19: warning: variable ‘length’ set but not used [-Wunused-but-set-variable] /home/jmayer/work/wireshark/svn/trunk/epan/dissectors/x11-extension-implementation.h: In
function ‘struct_POINT’: /home/jmayer/work/wireshark/svn/trunk/epan/dissectors/x11-extension-implementation.h:4892:
6: warning: variable ‘f_y’ set but not used [-Wunused-but-set-variable] /home/jmayer/work/wireshark/svn/trunk/epan/dissectors/x11-extension-implementation.h:4891:
6: warning: variable ‘f_x’ set but not used [-Wunused-but-set-variable]
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/x11-extension-implementation.h: In function ‘struct_RECTANGLE’:
[several hundreds more deleted]
-- 
Joerg Mayer                                           <[email protected]>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.