https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109836
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://gcc.gnu.org/piperma | |il/gcc-patches/2023-August/ | |626732.html --- Comment #6 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Eric Gallager from comment #5) > (In reply to Eric Gallager from comment #4) > > How about: > > > > diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt > > index 0d0ad0a6374..f046d91d03b 100644 > > --- a/gcc/c-family/c.opt > > +++ b/gcc/c-family/c.opt > > @@ -1178,7 +1178,7 @@ C ObjC C++ ObjC++ Var(warn_pointer_arith) Warning > > LangEnabledBy(C ObjC C++ ObjC+ > > Warn about function pointer arithmetic. > > > > Wpointer-sign > > -C ObjC Var(warn_pointer_sign) Warning LangEnabledBy(C ObjC,Wall || > > Wpedantic) > > +C ObjC Var(warn_pointer_sign) Warning LangEnabledBy(C ObjC,Wall || > > Wpedantic || Wextra) > > Warn when a pointer differs in signedness in an assignment. > > > > Wpointer-compare > > I sent this to the gcc-patches mailing list: > https://gcc.gnu.org/pipermail/gcc-patches/2023-May/620137.html Updated version: https://gcc.gnu.org/pipermail/gcc-patches/2023-August/626732.html