https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117981

--- Comment #2 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
The use of standard versions in the option names is deliberate. An option to
warn about any version incompatibilities would become like -Wtraditional, less
and less useful over time. If your code is known to work as C11 and doesn't
need to compile with pre-C11 compilers, then warnings about anything that might
have changed in some way between traditional C, C89, C99 and C11 aren't
helpful. Or is your suggestion to have such options that only name the older
standard version, so -Wc11-later-compat (placeholder option name) would be the
union of -Wc11-c23-compat, -Wc23-c2y-compat and all later such options (and
once you no longer care about pre-C23 compilers, you'd move to
-Wc23-later-compat instead)?

Reply via email to