Skip to content

Conversation

@DerDakon
Copy link
Member

When building with -Wextra there are a lot of false positives for fallthroughs, which happen because the compiler does not detect that these functions in fact never return. Add an attribute if building with gcc. According to the documentation it is supported since version 2.5, which is way older than anything one can reasonably expect this to work on.

When building with -Wextra there are a lot of false positives for fallthroughs,
which happen because the compiler does not detect that these functions in fact
never return. Add an attribute if building with gcc. According to the
documentation it is supported since version 2.5, which is way older than
anything one can reasonably expect this to work on.
Copy link

@josuah josuah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am always sad to add compiler-specific flags and attributes. But notqmail is developped for angry noisy compilers, so it is a necessary evil

@DerDakon DerDakon merged commit 4a48232 into master Jan 30, 2021
@DerDakon DerDakon deleted the Dakon-noreturn branch January 30, 2021 08:53
@schmonz schmonz modified the milestones: 1.90, 1.09 Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants