public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Warning specifically for a returning noreturn
@ 2023-07-05  0:52 Julian Waters
  2023-07-05  1:07 ` Andrew Pinski
  0 siblings, 1 reply; 13+ messages in thread
From: Julian Waters @ 2023-07-05  0:52 UTC (permalink / raw)
  To: gcc

[-- Attachment #1: Type: text/plain, Size: 783 bytes --]

Hi all,

Currently to disable the warning that a noreturn method does return, it's
required to disable warnings entirely. This can be very inconvenient when
-Werror is enabled with a noreturn method that isn't specifically calling
something like std::abort() at the end, when one wants all other -Wall and
-Wextra warnings to be reported, for instance in the Java HotSpot VM (which
I'm currently adapting to compile with gcc on all supported platforms). Is
there a possibility we can add a disable warning option specifically for
this case? Something like -Wno-returning-noreturn. I'm interested in adding
this myself if it's not convenient for gcc's maintainers to do so at the
moment, but I'd need some guidance on where to look and what the relevant
code is

best regards,
Julian

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-07-25  2:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-05  0:52 Warning specifically for a returning noreturn Julian Waters
2023-07-05  1:07 ` Andrew Pinski
2023-07-05  1:31   ` Julian Waters
2023-07-05  1:40     ` Andrew Pinski
2023-07-05  5:40       ` LIU Hao
2023-07-05 11:00       ` Julian Waters
2023-07-05 11:26         ` Jonathan Wakely
2023-07-05 13:13           ` Julian Waters
2023-07-05 13:20             ` Jonathan Wakely
2023-07-21  3:26             ` Julian Waters
2023-07-21  9:43               ` Jonathan Wakely
2023-07-25  2:38                 ` Julian Waters
2023-07-05 16:50           ` Eric Gallager

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).