[clang] Add new flag -Wreturn-mismatch (PR #82872)

Bhuminjay Soni via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 5 04:03:12 PST 2024


================
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -fsyntax-only -Wignored-qualifiers -Wno-error=return-type -Wno-error=implicit-int -verify -fblocks -Wno-unreachable-code -Wno-unused-value -Wno-strict-prototypes
+// RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -fsyntax-only -Wignored-qualifiers -Wno-error=return-type -Wno-error=return-mismatch -Wno-error=implicit-int -verify -fblocks -Wno-unreachable-code -Wno-unused-value -Wno-strict-prototypes
 
 // clang emits the following warning by default.
 // With GCC, -pedantic, -Wreturn-type or -Wall are required to produce the
----------------
11happy wrote:

done 

https://github.com/llvm/llvm-project/pull/82872


More information about the cfe-commits mailing list