Compile warnings
Posted: Sun Oct 11, 2015 3:27 am
Been getting these warnings in codeblocks. Been ignoring them until now.
src\main.c||In function `main':|
src\main.c|75|warning: passing arg 2 of `VDP_setPaletteColors' discards qualifiers from pointer target type|
src\main.c|113|warning: passing arg 2 of `SPR_initSprite' discards qualifiers from pointer target type|
src\main.c|114|warning: passing arg 2 of `SPR_initSprite' discards qualifiers from pointer target type|
Here is the code related to the errors
VDP_setPaletteColors(0, palette_black, 64);
PR_initSprite(&sprites[player1.zorder], &jason_sprite, player1.x, player1.y, TILE_ATTR(PAL1, TRUE, FALSE, FALSE));
SPR_initSprite(&sprites[czorder], &fcitizen_sprite, cxypos[0][0], cxypos[1][0], TILE_ATTR(PAL2, TRUE, FALSE, FALSE));
src\main.c||In function `main':|
src\main.c|75|warning: passing arg 2 of `VDP_setPaletteColors' discards qualifiers from pointer target type|
src\main.c|113|warning: passing arg 2 of `SPR_initSprite' discards qualifiers from pointer target type|
src\main.c|114|warning: passing arg 2 of `SPR_initSprite' discards qualifiers from pointer target type|
Here is the code related to the errors
VDP_setPaletteColors(0, palette_black, 64);
PR_initSprite(&sprites[player1.zorder], &jason_sprite, player1.x, player1.y, TILE_ATTR(PAL1, TRUE, FALSE, FALSE));
SPR_initSprite(&sprites[czorder], &fcitizen_sprite, cxypos[0][0], cxypos[1][0], TILE_ATTR(PAL2, TRUE, FALSE, FALSE));