Skip to content

add noreturn attribute to a couple of functions - #211

Merged
DerDakon merged 1 commit into
masterfrom
Dakon-noreturn
Jan 30, 2021
Merged

DerDakon merged 1 commit into
masterfrom
Dakon-noreturn

Conversation

@DerDakon

Copy link
Copy Markdown
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.

Comment thread conf-cc Resolved
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.

@josuah josuah left a comment

Copy link
Copy Markdown

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.

4 participants