aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dfilter
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-09-10 14:03:38 -0700
committerGuy Harris <guy@alum.mit.edu>2018-09-10 21:04:20 +0000
commit6ef4e54f272d9d815da3b0f6f32a559cabc80a3e (patch)
treeab1c6b8c24049b9b358a2839736c2215b540d6c7 /epan/dfilter
parent51ee234eee37a322898e35e237aa65f53ded12f0 (diff)
Maybe we have to treat llvm-gcc specially.
Change-Id: I73aa608a31a79fa58cb5a86aceaaa778adf0aa2c Reviewed-on: https://code.wireshark.org/review/29579 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dfilter')
-rw-r--r--epan/dfilter/scanner.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dfilter/scanner.l b/epan/dfilter/scanner.l
index 08d7713a23..59fd156662 100644
--- a/epan/dfilter/scanner.l
+++ b/epan/dfilter/scanner.l
@@ -85,7 +85,7 @@
#error This is __clang_major__ and __clang_minor__
#endif
#elif defined(__GNUC__)
- #if WS_IS_AT_LEAST_GNUC_VERSION(4,8)
+ #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")
@@ -93,7 +93,7 @@
_Pragma("gcc diagnostic push")
_Pragma("gcc diagnostic ignored \"-Wunreachable-code\"")
#else
- #error This is __GNUC__ and __GNUC_MINOR__
+ #error This is not GCC 4.8 or later and it is not llvm-gcc
#endif
#else
#error This is not clang or GCC