Wireshark-dev: Re: [Wireshark-dev] Compiling Wireshark with gcc-6: Lots of new warnings
From: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
Date: Thu, 11 Feb 2016 07:18:11 +0100


On Wed, Feb 10, 2016 at 10:13 PM, Pascal Quantin <pascal.quantin@xxxxxxxxx> wrote:
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

Thanks Pascal !
Working ! i will push a patch :)

Cheers,
Pascal.