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:
Guy Harris 2018-09-10 12:37:08 -07:00
parent bc600962e2
commit 87e97a8e74
1 changed files with 9 additions and 0 deletions

View File

@ -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*