Fix a couple of clang compiler warnings:

-Wunused-variable
-Winconsistent-missing-override
-Wdelete-non-virtual-dtor
-Wunused-private-field
-Wformat
This commit is contained in:
wmayer
2019-06-23 15:19:12 +02:00
parent b9417938c4
commit 85270f5cd3
16 changed files with 64 additions and 23 deletions

View File

@@ -25,6 +25,11 @@
# include <unistd.h>
#endif
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wdelete-non-virtual-dtor"
#endif
#include "Base/Exception.h"
#include <Base/Interpreter.h>
#include <App/Application.h>
@@ -1988,3 +1993,7 @@ bool ExpressionParser::isTokenAUnit(const std::string & str)
else
return false;
}
#if defined(__clang__)
# pragma clang diagnostic pop
#endif