changeset 1808:871a2050236b

OK, so now this pragma provokes a warning in gcc! Guard it with a clang guard
author Chris Cannam
date Thu, 17 Oct 2019 13:42:55 +0100
parents 710b4e44901b
children 73447d746db3
files base/ById.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/base/ById.cpp	Wed Oct 16 16:29:46 2019 +0100
+++ b/base/ById.cpp	Thu Oct 17 13:42:55 2019 +0100
@@ -38,7 +38,9 @@
 
 // "warning: expression with side effects will be evaluated despite
 // being used as an operand to 'typeid'"
+#ifdef __clang__
 #pragma clang diagnostic ignored "-Wpotentially-evaluated-expression"
+#endif
 
 class AnyById::Impl
 {