diff base/ById.cpp @ 1806:c7e9e63c7bae

Avoid some compiler warnings
author Chris Cannam
date Wed, 16 Oct 2019 15:26:01 +0100
parents 4fec4527e50e
children 710b4e44901b
line wrap: on
line diff
--- a/base/ById.cpp	Wed Oct 16 12:12:49 2019 +0100
+++ b/base/ById.cpp	Wed Oct 16 15:26:01 2019 +0100
@@ -36,6 +36,10 @@
     return i;
 }
 
+// "warning: expression with side effects will be evaluated despite
+// being used as an operand to 'typeid'"
+#pragma GCC diagnostic ignored "-Wpotentially-evaluated-expression"
+
 class AnyById::Impl
 {
 public: