From 9fb33e6a3cc3dd4a1321dd9778c60da562199792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 11 Jul 2021 11:37:12 +0200 Subject: [PATCH] Try to solve self check warning to make CI happy --- lib/config.h | 2 ++ lib/exprengine.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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)); }