Skip to content

In C++ mode do not warn about inline combined with noinline [GH #183] - #251

Open
mborland wants to merge 5 commits into
edgcpp:mainfrom
mborland:fix/183
Open

mborland wants to merge 5 commits into
edgcpp:mainfrom
mborland:fix/183

Conversation

@mborland

@mborland mborland commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

In GCC when using C++ you are allowed to combine inline and no inline without warning, which is a common idiom in Boost. In plain C mode GCC warns. This PR changes to match the GCC behavior or not warning in C++ mode, as previously it warned in both.

Closes: #183

@daveedvdv-nvidia daveedvdv-nvidia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A question about whether this is desired in Clang C++ mode in addition to GNU C++ mode.

Comment thread src/attribute.c
Comment thread src/Changes Outdated
@daveedvdv-nvidia

Copy link
Copy Markdown
Contributor

I'll merge after the CI checks have completed (even though this is just wording changes).

@daveedvdv-nvidia

Copy link
Copy Markdown
Contributor

A last-minute agentic review found some minor issues... I'll let it devise a patch.

@daveedvdv-nvidia

Copy link
Copy Markdown
Contributor

@mborland : Can you review the commit I added to the PR?

@edgcpp-bot

Copy link
Copy Markdown
Collaborator

AcknowlEDG review results updated for ca088ffd527d:

CI success.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

inline + noinline warns although GCC does not

3 participants