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

warning: pointers to arrays with different qualifiers are incompatible in ISO C #44

Open
RicardasSim opened this issue Jan 6, 2021 · 1 comment

Comments

@RicardasSim
Copy link

after commit 0538757

linmath.h: In function ‘mat4x4_mul’:
linmath.h:174:16: warning: pointers to arrays with different qualifiers are incompatible in ISO C [-Wpedantic]
174 | mat4x4_dup(M, temp);
| ^~~~
linmath.h: In function ‘mat4x4_translate_in_place’:
linmath.h:198:17: warning: pointers to arrays with different qualifiers are incompatible in ISO C [-Wpedantic]
198 | mat4x4_row(r, M, i);
| ^
linmath.h: In function ‘mat4x4_rotate’:
linmath.h:225:19: warning: pointers to arrays with different qualifiers are incompatible in ISO C [-Wpedantic]
225 | mat4x4_scale(S, S, s);
| ^
linmath.h:229:17: warning: pointers to arrays with different qualifiers are incompatible in ISO C [-Wpedantic]
229 | mat4x4_sub(C, C, T);
| ^
linmath.h:229:20: warning: pointers to arrays with different qualifiers are incompatible in ISO C [-Wpedantic]
229 | mat4x4_sub(C, C, T);
| ^
linmath.h:231:19: warning: pointers to arrays with different qualifiers are incompatible in ISO C [-Wpedantic]
231 | mat4x4_scale(C, C, c);
| ^
linmath.h:233:17: warning: pointers to arrays with different qualifiers are incompatible in ISO C [-Wpedantic]
233 | mat4x4_add(T, T, C);
| ^
linmath.h:233:20: warning: pointers to arrays with different qualifiers are incompatible in ISO C [-Wpedantic]
233 | mat4x4_add(T, T, C);
| ^
linmath.h:234:17: warning: pointers to arrays with different qualifiers are incompatible in ISO C [-Wpedantic]
234 | mat4x4_add(T, T, S);
| ^
linmath.h:234:20: warning: pointers to arrays with different qualifiers are incompatible in ISO C [-Wpedantic]
234 | mat4x4_add(T, T, S);
| ^
linmath.h:237:20: warning: pointers to arrays with different qualifiers are incompatible in ISO C [-Wpedantic]
237 | mat4x4_mul(R, M, T);
| ^
linmath.h: In function ‘mat4x4_rotate_X’:
linmath.h:252:19: warning: pointers to arrays with different qualifiers are incompatible in ISO C [-Wpedantic]
252 | mat4x4_mul(Q, M, R);
| ^
linmath.h: In function ‘mat4x4_rotate_Y’:
linmath.h:264:19: warning: pointers to arrays with different qualifiers are incompatible in ISO C [-Wpedantic]
264 | mat4x4_mul(Q, M, R);
| ^
linmath.h: In function ‘mat4x4_rotate_Z’:
linmath.h:276:19: warning: pointers to arrays with different qualifiers are incompatible in ISO C [-Wpedantic]
276 | mat4x4_mul(Q, M, R);

@datenwolf
Copy link
Owner

This will probably require changing the const type specifiers removed, due to the way typedef works.

iurii-provizio added a commit to provizio/linmath.h that referenced this issue May 23, 2022
iurii-provizio added a commit to provizio/linmath.h that referenced this issue Sep 8, 2022
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