Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
1805:3db9a9fc2612 | 1806:c7e9e63c7bae |
---|---|
33 throw std::runtime_error("Internal ID limit exceeded!"); | 33 throw std::runtime_error("Internal ID limit exceeded!"); |
34 } | 34 } |
35 } | 35 } |
36 return i; | 36 return i; |
37 } | 37 } |
38 | |
39 // "warning: expression with side effects will be evaluated despite | |
40 // being used as an operand to 'typeid'" | |
41 #pragma GCC diagnostic ignored "-Wpotentially-evaluated-expression" | |
38 | 42 |
39 class AnyById::Impl | 43 class AnyById::Impl |
40 { | 44 { |
41 public: | 45 public: |
42 ~Impl() { | 46 ~Impl() { |