gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > Compile Error

#35541 - donpeppoe - Sun Feb 06, 2005 9:25 pm

Hi. I get this warning:

main.c(145): warning: passing arg 2 of `FadeFromColor' discards qualifiers from pointer target type

any idea's

#35542 - tepples - Sun Feb 06, 2005 9:46 pm

Usually, "discards qualifiers" warnings involve const correctness issues. Make sure that you pass a pointer to const data only to a function marked as taking a pointer to const data.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#35543 - donpeppoe - Sun Feb 06, 2005 9:49 pm

that was it

Thanks!