mirror of
https://github.com/Icinga/icinga2.git
synced 2025-11-30 02:23:33 +01:00
Disable -Wunused-(parameter|variable) on generated files
This commit is contained in:
parent
6fc966c502
commit
0b57e9a30c
@ -1482,6 +1482,10 @@ void ClassCompiler::CompileStream(const std::string& path, std::istream& input,
|
|||||||
<< "#pragma warning( push )" << std::endl
|
<< "#pragma warning( push )" << std::endl
|
||||||
<< "#pragma warning( disable : 4244 )" << std::endl
|
<< "#pragma warning( disable : 4244 )" << std::endl
|
||||||
<< "#pragma warning( disable : 4800 )" << std::endl
|
<< "#pragma warning( disable : 4800 )" << std::endl
|
||||||
|
<< "#else /* _MSC_VER */" << std::endl
|
||||||
|
<< "#pragma GCC diagnostic push" << std::endl
|
||||||
|
<< "#pragma GCC diagnostic ignored \"-Wunused-parameter\"" << std::endl
|
||||||
|
<< "#pragma GCC diagnostic ignored \"-Wunused-variable\"" << std::endl
|
||||||
<< "#endif /* _MSC_VER */" << std::endl << std::endl;
|
<< "#endif /* _MSC_VER */" << std::endl << std::endl;
|
||||||
|
|
||||||
|
|
||||||
@ -1492,5 +1496,7 @@ void ClassCompiler::CompileStream(const std::string& path, std::istream& input,
|
|||||||
|
|
||||||
oimpl << "#ifdef _MSC_VER" << std::endl
|
oimpl << "#ifdef _MSC_VER" << std::endl
|
||||||
<< "#pragma warning ( pop )" << std::endl
|
<< "#pragma warning ( pop )" << std::endl
|
||||||
|
<< "#else /* _MSC_VER */" << std::endl
|
||||||
|
<< "#pragma GCC diagnostic pop" << std::endl
|
||||||
<< "#endif /* _MSC_VER */" << std::endl;
|
<< "#endif /* _MSC_VER */" << std::endl;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user