Why -Wsuggest-attribute=noreturn does not apply to static?

Дилян Палаузов dilyan.palauzov@aegee.org
Mon Oct 7 07:01:24 GMT 2024


Hello,

https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wsuggest-attribute_003d says for -Wsuggest-attribute=noreturn:

> The compiler only warns for functions visible in other compilation units.

Why?  clang -Wmissing-noreturn does warn even for static functions.

Greetings
  Дилян


More information about the Gcc-patches mailing list