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

aarch64/fenv.c:41:23: error: invalid initializer #278

Open
ghost opened this issue Jun 1, 2023 · 2 comments
Open

aarch64/fenv.c:41:23: error: invalid initializer #278

ghost opened this issue Jun 1, 2023 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 1, 2023

Trying to build this for aarch64, and even tried to remove the constant to fix this, but I think I'll open an issue on this. I hope this is just me compiling this incorrectly haha

@ghost
Copy link
Author

ghost commented Jun 1, 2023

Screenshot from 2023-05-31 20-16-45

Apparently even on older releases this still occurs.

@000lbh
Copy link
Contributor

000lbh commented Oct 10, 2024

since fenv_t is a struct, its initializer should be {0}. You can change this line into:
const fenv_t __fe_dfl_env = {0};
However, I have no idea why the original code compiles. On my machine of loongarch64 architecture, it doesn't either.

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

No branches or pull requests

1 participant