From 136f35e1cbd54e5fb12e5b6cd2445d8307232449 Mon Sep 17 00:00:00 2001 From: Filipe Cabecinhas Date: Sat, 18 Jul 2015 06:35:24 +0000 Subject: Silence the driver warnings, if we see "-w" on the Driver. Summary: We can enable warnings after that -w, so the patch might not be 100% correct. The problem that triggered this is: we have some amount of tests that expect 0 warnings (including unit tests for -w), but -w ends up not fully silencing everything. Reviewers: echristo, chandlerc Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D11322 llvm-svn: 242606 --- clang/test/Index/warning-flags.c | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/test/Index/warning-flags.c') diff --git a/clang/test/Index/warning-flags.c b/clang/test/Index/warning-flags.c index b76662e9eed..955d68c7544 100644 --- a/clang/test/Index/warning-flags.c +++ b/clang/test/Index/warning-flags.c @@ -7,6 +7,7 @@ int *bar(float *f) { return f; } // RUN: c-index-test -test-load-source-reparse 5 all -Wno-return-type %s 2>&1|FileCheck -check-prefix=CHECK-SECOND-WARNING %s // RUN: c-index-test -test-load-source all -w %s 2>&1|not grep warning: // RUN: c-index-test -test-load-source-reparse 5 all -w %s 2>&1|not grep warning: +// RUN: c-index-test -test-load-source all -w -O4 %s 2>&1|not grep warning: // CHECK-BOTH-WARNINGS: warning: control reaches end of non-void function // CHECK-BOTH-WARNINGS: warning: incompatible pointer types returning 'float *' from a function with result type 'int *' -- cgit v1.2.3