Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround for maybe_unused parse bug in old gcc #522

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

tbensonatl
Copy link
Collaborator

Versions of gcc prior to 9.3 have a bug parsing [[maybe_unused]] when applied to the first argument in a constructor:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81429

Although we do not officially support gcc versions prior to 9.3, this is a workaround for a couple such cases.

Also, switch from CMake COPY_FILE to COPY to maintain compatability with CMake 3.20 (COPY_FILE was added in 3.21)

Versions of gcc prior to 9.3 have a bug parsing [[maybe_unused]]
when applied to the first argument in a constructor:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81429

Although we do not officially support gcc versions prior to 9.3,
this is a workaround for a couple such cases.

Also, switch from CMake COPY_FILE to COPY to maintain compatability
with CMake 3.20 (COPY_FILE was added in 3.21)
@tbensonatl
Copy link
Collaborator Author

/blossom-ci

@tbensonatl tbensonatl merged commit 0fba213 into main Nov 28, 2023
1 check passed
@tbensonatl tbensonatl deleted the workaround-old-gcc-maybe-unused-issue branch November 30, 2023 23:54
cliffburdick pushed a commit that referenced this pull request Dec 8, 2023
Versions of gcc prior to 9.3 have a bug parsing [[maybe_unused]]
when applied to the first argument in a constructor:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81429

Although we do not officially support gcc versions prior to 9.3,
this is a workaround for a couple such cases.

Also, switch from CMake COPY_FILE to COPY to maintain compatability
with CMake 3.20 (COPY_FILE was added in 3.21)
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.

2 participants