linmath.h
linmath.h copied to clipboard
warning: pointers to arrays with different qualifiers are incompatible in ISO C
after commit 05387571f57224f8cbc2b390b423dab6b9158988
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);
This will probably require changing the const
type specifiers removed, due to the way typedef
works.