Wireshark-dev: Re: [Wireshark-dev] Compiling Wireshark with gcc-6: Lots of new warnings

From: Pascal Quantin <pascal.quantin@xxxxxxxxx>
Date: Wed, 10 Feb 2016 22:13:45 +0100
Hi Alexis,

2016-02-10 13:00 GMT+01:00 Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>:
Hi, i have now a build machine with gcc6 and try..
There is always some warning, i have push a first serie of patch https://code.wireshark.org/review/#/q/topic:gcc6

For dissectors, the last one is :
../../asn1/q932/packet-q932-exp.h:26:27: error: ‘q932_PresentedNumberUnscreened_vals’ defined but not used [-Werror=unused-const-variable]
../../asn1/q932/packet-q932-exp.h:18:27: error: ‘q932_PresentedNumberScreened_vals’ defined but not used [-Werror=unused-const-variable]
../../asn1/q932/packet-q932-exp.h:10:27: error: ‘q932_PresentedAddressUnscreened_vals’ defined but not used [-Werror=unused-const-variable]
../../asn1/q932/packet-q932-exp.h:2:27: error: ‘q932_PresentedAddressScreened_vals’ defined but not used [-Werror=unused-const-variable]

If there is a expert of ASN1 dissector generator ;-)

Could you give a try to this patch?

diff --git a/asn1/q932/q932.cnf b/asn1/q932/q932.cnf
index e5bcf3b..b2dbcb4 100644
--- a/asn1/q932/q932.cnf
+++ b/asn1/q932/q932.cnf
@@ -8,7 +8,7 @@ InterpretationComponent
 NetworkFacilityExtension
 NetworkProtocolProfile
 
-#.EXPORTS EXTERN VALS_WITH_TABLE
+#.EXPORTS EXTERN
 
 # Addressing-Data-Elements
 PresentedAddressScreened

Cheers,
Pascal.