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

compilation problem: ku128_v *r = &g->v.a[idd>>1].nei[idd&1]; #159

Closed
rafalcode opened this issue Feb 8, 2017 · 1 comment
Closed

compilation problem: ku128_v *r = &g->v.a[idd>>1].nei[idd&1]; #159

rafalcode opened this issue Feb 8, 2017 · 1 comment

Comments

@rafalcode
Copy link

cc1 some warnings treated as erros
command gcc failed exit status 1

saying

third_party/fermi-lite-0.1/mag.c:246:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]

in relation to

ku128_v *r = &g->v.a[idd>>1].nei[idd&1];

So will try editing and:
ku128_v *r;
r = &g->v.a[idd>>1].nei[idd&1];

Appears C90 std is fussy with this . Is C90 stipulation necessary?

@martinghunt
Copy link
Collaborator

What OS and what version of gcc are you using?

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

2 participants