You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error message is error: designator order for field does not match declaration order, indicating the order of fields declared here: ALLEGRO_VERTEX, does not match the order of the designators in the example.
In this case the side effect is not consequential, but could be fixed by moving .color = ... to the end of the list.
For some reason I only get this error on gcc (Win) and not clang (Mac).
The text was updated successfully, but these errors were encountered:
What version of compiler? I was messing about with godbolt and I found it was never flagged if I compiled as C, but always a warning with clang in C++ mode and always an error with gcc in C++ mode.
The following example code for al_draw_prim() will error (with the compile flag
-Werror=reorder-ctor
):Error message is
error: designator order for field does not match declaration order
, indicating the order of fields declared here: ALLEGRO_VERTEX, does not match the order of the designators in the example.In this case the side effect is not consequential, but could be fixed by moving
.color = ...
to the end of the list.For some reason I only get this error on
gcc
(Win) and notclang
(Mac).The text was updated successfully, but these errors were encountered: