diff --git a/infer/lib/clang_wrappers/clang_wrapper b/infer/lib/clang_wrappers/clang_wrapper index b6f09e0b9..b088f54cd 100755 --- a/infer/lib/clang_wrappers/clang_wrapper +++ b/infer/lib/clang_wrappers/clang_wrapper @@ -35,6 +35,8 @@ done # Never error on warnings. Clang is often more strict than Apple's version. # These arguments are appended to override previous opposite settings. -COMMAND+=("-Wno-error" "-Qunused-arguments") +# How it's done: surpress all the warnings, since there are no warnings, +# compiler can't elevate them to error level. +COMMAND+=("-Wno-everything") "${COMMAND[@]}" diff --git a/infer/tests/codetoanalyze/objc/errors/category_procdesc/main.c b/infer/tests/codetoanalyze/objc/errors/category_procdesc/main.c index d52da28a3..ac41876d5 100644 --- a/infer/tests/codetoanalyze/objc/errors/category_procdesc/main.c +++ b/infer/tests/codetoanalyze/objc/errors/category_procdesc/main.c @@ -8,7 +8,7 @@ */ #import "EOCPerson.h" -#include + int main() { EOCPerson *person = [[EOCPerson alloc] init];