https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113050
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Florian Weimer <f...@gcc.gnu.org>: https://gcc.gnu.org/g:a48dd581bf917fcd52fb9eab60943825ed96b6d4 commit r14-6751-ga48dd581bf917fcd52fb9eab60943825ed96b6d4 Author: Florian Weimer <fwei...@redhat.com> Date: Wed Dec 20 17:23:40 2023 +0100 c-family: Use -Wdiscarded-qualifiers for ignored qualifiers in __atomic_* 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.