comparison base/ById.cpp @ 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
comparison
equal deleted inserted replaced
1807:710b4e44901b 1808:871a2050236b
36 return i; 36 return i;
37 } 37 }
38 38
39 // "warning: expression with side effects will be evaluated despite 39 // "warning: expression with side effects will be evaluated despite
40 // being used as an operand to 'typeid'" 40 // being used as an operand to 'typeid'"
41 #ifdef __clang__
41 #pragma clang diagnostic ignored "-Wpotentially-evaluated-expression" 42 #pragma clang diagnostic ignored "-Wpotentially-evaluated-expression"
43 #endif
42 44
43 class AnyById::Impl 45 class AnyById::Impl
44 { 46 {
45 public: 47 public:
46 ~Impl() { 48 ~Impl() {