https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109836
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> --- (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