On Sun, 17 Dec 2023 at 15:38, Florian Weimer <fwei...@redhat.com> wrote: > > This matches other compiler diagnostics. No test updates are needed > because c-c++-common/pr95378.c does not match a specific -W option. > > Fixes commit d2384b7b24f8557b66f6958a05ea99ff4307e75c ("c-family: > check qualifiers of arguments to __atomic built-ins (PR 95378)"). > > gcc/c-family/ > > PR c/113050 > * c-common.cc (get_atomic_generic_size): Use > OPT_Wdiscarded_qualifiers instead of > OPT_Wincompatible_pointer_types. > > --- > > Jonathan, I assume this was just an oversight in your patch, and there > is no fundamental reason to use -Wincompatible-pointer-types here?
You are correct. I think I forgot about -Wdiscarded-qualifiers at the time.