Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] Compile errors with gcc 4.6.2

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Mon, 21 Nov 2011 13:39:43 +0100
After updating from opensuse 11.4 to 12.1 (gcc 4.5 to 4.6) I'm seeing some
warnings that are treated as errors.

What I'd like to see others who understand the code fix:

/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:1541:13: error: variable ‘elem_funcs’ set but not used [-Werror=unused-but-set-variable]
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-gsm_a_common.c:1540:9: error: variable ‘elem_ett’ set but not used [-Werror=unused-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:1759:9: error: variable ‘elem_ett’ set but not used [-Werror=unused-but-set-variable]
/home/jmayer/work/wireshark/svn/trunk/epan/dissectors/packet-gsm_a_common.c:1758:22: error: variable ‘elem_names’ set but not used [-Werror=unused-but-set-variable]


Thanks
   Joerg
-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.