all flags

This commit is contained in:
rabix 2024-10-02 17:00:02 +08:00
parent 0a6a6b6cd2
commit 748b005736
1 changed files with 6 additions and 1 deletions

View File

@ -871,7 +871,12 @@ void Compiler::setRebuild(bool isRebuild)
QStringList Compiler::getReflextiveArguments()
{
QStringList result{
"-Wall", "-Werror", "-Wextra", "-pedantic", "-Wconversion",
"-Wall", "-Werror", "-Wextra",
"-pedantic", "-Wimplicit-fallthrough", "-Wsequence-point",
"-Wswitch-default", "-Wswitch-unreachable", "-Wswitch-enum",
"-Wstringop-truncation", "-Wbool-compare", "-Wtautological-compare",
"-Wfloat-equal", "-Wshadow=global", "-Wpointer-arith", "-Wpointer-compare",
"-Wcast-align", "-Wcast-qual", "-Wconversion", "-Wwrite-strings", "-Wdangling-else", "-Wlogical-op",
"-finput-charset=utf-8",
"-fexec-charset=utf-8"
};