Enable unused-function warning for runtime (#4628)
This commit is contained in:
committed by
Nikolay Krasko
parent
8bb76c67e3
commit
32e3deace1
+1
-2
@@ -71,7 +71,6 @@ open class CompileToBitcode @Inject constructor(
|
||||
listOfNotNull("-std=c++14", "-Werror", "-O2",
|
||||
"-Wall", "-Wextra",
|
||||
"-Wno-unused-parameter", // False positives with polymorphic functions.
|
||||
"-Wno-unused-function", // TODO: Enable this warning when we have C++ runtime tests.
|
||||
"-fPIC".takeIf { !HostManager().targetByName(target).isMINGW })
|
||||
}
|
||||
return commonFlags + languageFlags + compilerArgs
|
||||
@@ -151,4 +150,4 @@ open class CompileToBitcode @Inject constructor(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user