diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Conf.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/Conf.hpp b/include/Conf.hpp index c8c22e1..7117087 100644 --- a/include/Conf.hpp +++ b/include/Conf.hpp @@ -214,7 +214,8 @@ namespace sibs cVersion(CVersion::C11), cppVersion(CPPVersion::CPP14), mainProject(false), - sanitize(false) + sanitize(false), + showWarnings(false) { cmakeDirGlobal = projectPath; cmakeDirStatic = cmakeDirGlobal; @@ -406,6 +407,8 @@ namespace sibs // Get define value by name. // Return empty string if the value is empty or if the defined value doesn't exist const std::string& getDefinedValue(const std::string &name) const; + + bool showWarnings; protected: virtual void processObject(StringView name) override; virtual void processField(StringView name, const ConfigValue &value) override; @@ -460,6 +463,7 @@ namespace sibs SibsTestConfig(Compiler _compiler, const FileString &_projectPath, OptimizationLevel _optimizationLevel) : SibsConfig(_compiler, _projectPath, _optimizationLevel, true) { packageName = "test"; + showWarnings = true; } virtual ~SibsTestConfig(){} |