diff --git a/lib/config.h b/lib/config.h index c6034d6e6..a0b63990f 100644 --- a/lib/config.h +++ b/lib/config.h @@ -24,8 +24,10 @@ || (defined(__clang__) && (defined (__cplusplus)) && (__cplusplus >= 201103L)) \ || defined(__CPPCHECK__) # define OVERRIDE override +# define FINAL final #else # define OVERRIDE +# define FINAL #endif // C++11 noexcept diff --git a/lib/exprengine.cpp b/lib/exprengine.cpp index 09d02fa7d..11abb0c86 100644 --- a/lib/exprengine.cpp +++ b/lib/exprengine.cpp @@ -476,7 +476,7 @@ namespace { } } - std::string getNewSymbolName() OVERRIDE { + std::string getNewSymbolName() FINAL { return "$" + std::to_string(++(*symbolValueIndex)); }