# HG changeset patch # User Chris Cannam # Date 1571316175 -3600 # Node ID 871a2050236b3f1d61d14f3e307eaea95ef2131a # Parent 710b4e44901b27c22e895b84a6370d2d8ca3c8dc OK, so now this pragma provokes a warning in gcc! Guard it with a clang guard diff -r 710b4e44901b -r 871a2050236b base/ById.cpp --- 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 {