13 lines
399 B
C++
13 lines
399 B
C++
#include "defaults.hpp"
|
|
|
|
namespace build_support {
|
|
void compiler_warnings(vbs::Target target, const vbs::ProfileContext &context) {
|
|
target.compile_option("-Wall").compile_option("-Wextra");
|
|
if (context.compiler == vbs::CompilerFamily::gcc) {
|
|
target.compile_option("-Wduplicated-cond");
|
|
} else {
|
|
target.compile_option("-Wextra-semi");
|
|
}
|
|
}
|
|
} // namespace build_support
|