diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-09-11 13:08:32 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-09-11 20:09:05 +0000 |
commit | ff31ed8c4c4ee593040859ebd0573510f5c91cf3 (patch) | |
tree | 86990dce102531fe025adc3496354506ddef83ca /epan/dissectors/asn1/ain | |
parent | f7346284ac79c49ce995d5f42192d2296305b167 (diff) |
Go back to using a #pragma directly.
See if *that* prevents us from failing with a warning;
-Wno-error=unused-function doesn't seem to do the trick.
Change-Id: If2dec4ca70451670d0181c6cd0c7bc714e856c95
Reviewed-on: https://code.wireshark.org/review/29613
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/asn1/ain')
-rw-r--r-- | epan/dissectors/asn1/ain/packet-ain-template.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/epan/dissectors/asn1/ain/packet-ain-template.c b/epan/dissectors/asn1/ain/packet-ain-template.c index be9cdc493e..3721e1314a 100644 --- a/epan/dissectors/asn1/ain/packet-ain-template.c +++ b/epan/dissectors/asn1/ain/packet-ain-template.c @@ -22,8 +22,15 @@ #include "packet-ber.h" #include "packet-ansi_tcap.h" -/* This is meant to handle dissect_ain_ROS' defined but not used */ -DIAG_OFF(unused-function) +#if defined(__GNUC__) +/* + * This is meant to handle dissect_ain_ROS' defined but not used. + * + * DIAG_OFF doesn't work with llvm-gcc, for some unknown reason, so + * we just use the pragma directly. + */ +#pragma GCC diagnostic ignored "-Wunused-function" +#endif #define PNAME "Advanced Intelligent Network" #define PSNAME "AIN" |