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

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 4 11:19:49 PST 2024


================
@@ -1,5 +1,5 @@
 // XFAIL: target=aarch64-pc-windows-msvc
-// RUN: %clang_cc1 -Wno-return-type -Wno-unused-value -emit-llvm %s -w -o - | FileCheck %s
+// RUN: %clang_cc1 -Wno-return-type -Wno-return-mismatch -Wno-unused-value -emit-llvm %s -w -o - | FileCheck %s
----------------
AaronBallman wrote:

Similarly, why is this change required -- I would have assumed that `-Wno-return-type` was sufficient to silence both. (Same question applies to `return-silent.c`.)

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


More information about the cfe-commits mailing list