-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Build fails with clang on GLM_DEPRECATED GLM_FUNC_DECL construct #1269
Comments
My builds are failing too, I think it's because Homebrew has moved to version 1.0.1 https://github.com/pemsley/coot/actions/workflows/build-coot-macos.yml
|
#1252 was where [[nodiscard]] was added. @christophe-lunarg Can you take a look at this please? |
I hope the above PR fixes this. |
@christophe-lunarg When are you gonna release a new version of GLM? The SuperTux project relies on GLM for some maths and we're currently using an earlier version in the nightly builds and would like to use a current upstream version. |
I've ran into this when build-testing one of glm consumers, gamescope, before updating FreeBSD port of glm to 1.x.
Reproducible with
What preprocessed line looks like:
__attribute__((__deprecated__)) [[nodiscard]] genIUType powerOfTwoAbove(genIUType Value);
Smaller repro (note that template is required):
I haven't dug into the docs, but simple experiment revealed two ways to fix it: either change the order of attributes or use attributes of the same format, e.g. change
__attribute__((__deprecated__))
to[[deprecated]
. Both compile by gcc and clang, and I suggest to use[[deprecated]]
in glm, as it's standard and supported sincec++14
.The text was updated successfully, but these errors were encountered: