Remove the probes.

(It's llvm-gcc, and appears to be a version too old to support
_Pragma("gcc diagnostic ...").)

Change-Id: I220997890636d5a5c33889d2e6c640feee155deb
Reviewed-on: https://code.wireshark.org/review/29580
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2018-09-10 14:23:38 -07:00
parent 6ef4e54f27
commit bba021dd30
1 changed files with 0 additions and 28 deletions

View File

@ -72,35 +72,7 @@
/*
* Disable diagnostics in the code generated by Flex.
*/
#if defined(__APPLE__)
#if defined(__clang__)
#if WS_IS_AT_LEAST_CLANG_VERSION(2,8)
_Pragma("clang diagnostic push")
_Pragma("clang diagnostic ignored \"-Wsign-compare\"")
_Pragma("clang diagnostic push")
_Pragma("clang diagnostic ignored \"-Wshorten-64-to-32\"")
_Pragma("clang diagnostic push")
_Pragma("clang diagnostic ignored \"-Wunreachable-code\"")
#else
#error This is __clang_major__ and __clang_minor__
#endif
#elif defined(__GNUC__)
#if WS_IS_AT_LEAST_GNUC_VERSION(4,8) || defined(__llvm__)
_Pragma("gcc diagnostic push")
_Pragma("gcc diagnostic ignored \"-Wsign-compare\"")
_Pragma("gcc diagnostic push")
_Pragma("gcc diagnostic ignored \"-Wshorten-64-to-32\"")
_Pragma("gcc diagnostic push")
_Pragma("gcc diagnostic ignored \"-Wunreachable-code\"")
#else
#error This is not GCC 4.8 or later and it is not llvm-gcc
#endif
#else
#error This is not clang or GCC
#endif
#else
DIAG_OFF_FLEX
#endif
#define LVAL df_lval
#define LVAL_TYPE stnode_t*