Test what kind of compiler we have running on the macOS buildbot.

Change-Id: Ib1a14256ce0fbcfa357368e8431705606a8412e0
Reviewed-on: https://code.wireshark.org/review/29574
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2018-09-10 13:16:45 -07:00
parent 400f748b04
commit d061b94ab6
1 changed files with 14 additions and 6 deletions

View File

@ -73,12 +73,20 @@
* 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\"")
#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
#else
#error This is not clang
#endif
#else
DIAG_OFF_FLEX
#endif