Modify -Wreturn-type and add -Wreturn-mismatch from GCC 14 #72116
Labels
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
enhancement
Improving things as opposed to bug fixing, e.g. new or missing feature
quality-of-implementation
GCC 14 modified the way
-Wreturn-type
behaves to split some of its functionality off into-Wreturn-mismatch
and strengthened some of the diagnostics to be errors by default (with the intention of making them permaerrors in the future). Clang already considers many of these cases to be errors by default already, but we should pick up the new warning flag and try to split our diagnostics similarly for compatibility reasons.From https://discourse.llvm.org/t/gcc-14-adds-wreturn-mismatch/74868/1
The text was updated successfully, but these errors were encountered: