Re: [PATCH] c: Stray inform note with -Waddress [PR106947]

2022-09-19 Thread Jakub Jelinek via Gcc-patches
On Mon, Sep 19, 2022 at 02:25:59PM -0400, Marek Polacek via Gcc-patches wrote: > A trivial fix for maybe_warn_for_null_address where we print an > inform note without first checking the return value of a warning > call. > > Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk/12? > >

[PATCH] c: Stray inform note with -Waddress [PR106947]

2022-09-19 Thread Marek Polacek via Gcc-patches
A trivial fix for maybe_warn_for_null_address where we print an inform note without first checking the return value of a warning call. Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk/12? PR c/106947 gcc/c/ChangeLog: * c-typeck.cc (maybe_warn_for_null_address): Don't