Re: [PATCH v2] c: Add -Wreturn-mismatch warning, split from -Wreturn-type

2023-11-08 Thread Joseph Myers
On Wed, 8 Nov 2023, Florian Weimer wrote: > > v2: Update comment in gcc.dg/noncompile/pr55976-2.c. Do not produce > > an error in C90 pedantic-error mode for return; in a function > > returning non-void. Add gcc.dg/Wreturn-mismatch-6.c to demonstrate > > this behavior. > > Ping?

Re: [PATCH v2] c: Add -Wreturn-mismatch warning, split from -Wreturn-type

2023-11-07 Thread Florian Weimer
* Florian Weimer: > The existing -Wreturn-type option covers both constraint violations > (which are mandatory to diagnose) and warnings that have known > false positives. The new -Wreturn-mismatch warning is only about > the constraint violations (missing or extra return expressions), > and

[PATCH v2] c: Add -Wreturn-mismatch warning, split from -Wreturn-type

2023-10-20 Thread Florian Weimer
The existing -Wreturn-type option covers both constraint violations (which are mandatory to diagnose) and warnings that have known false positives. The new -Wreturn-mismatch warning is only about the constraint violations (missing or extra return expressions), and should eventually be turned into