forked from osmocom/wireshark
Try directly using _Pragma if building on/for macOS.
Change-Id: Ib7a48c06a1244b26a9f9a8b733ca4769385603e8 Reviewed-on: https://code.wireshark.org/review/29573 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
bc600962e2
commit
87e97a8e74
|
@ -72,7 +72,16 @@
|
|||
/*
|
||||
* Disable diagnostics in the code generated by Flex.
|
||||
*/
|
||||
#if defined(__APPLE__)
|
||||
_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
|
||||
DIAG_OFF_FLEX
|
||||
#endif
|
||||
|
||||
#define LVAL df_lval
|
||||
#define LVAL_TYPE stnode_t*
|
||||
|
|
Loading…
Reference in New Issue