[clang] [Clang] add ext warning for missing return in 'main' for C89 mode (PR #134617)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 7 05:54:02 PDT 2025


================
@@ -0,0 +1,6 @@
+/* RUN: %clang_cc1 -std=c89 -fsyntax-only -verify -pedantic -Wno-strict-prototypes %s
----------------
AaronBallman wrote:

Can you also add RUN lines for: `-Wmain-return-type` (enables diagnostic), `-pedantic -Wno-main-return-type` (disables diagnostic), and `` (disables diagnostic)?

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


More information about the cfe-commits mailing list