Strange GCC warnings
Posted: Sat Apr 08, 2006 8:35 pm
I recently switched to GCC 4.1.0 (under Cygwin, but shouldn't be relevant, though) and now my kernel won't compile because of the warnings I get (-Wall -Werror set). All those warnings are of the same format:
I checked the warnings and they all refer to the seemingly incorrect use of some variables of type unsigned char * (only pointers, unsigned chars work normally). I also checked the funcion parameter lists and there isn't any error at all, both are unsigned...
I think that this is a new feature introduced in GCC 4.x, because I googled about it and found some information in GNOME mailing-lists and they had the same problem, but they managed to fix it (and didn't post the solution >:( ). Has anyone else been migrating to a newer GCC version recently and found himself in front of this problem?
Thanks
Code: Select all
[filename]:[line]: warning: pointer targets in (passing argument [argnum] of [funcname]/initialization) differ in signedness.
I think that this is a new feature introduced in GCC 4.x, because I googled about it and found some information in GNOME mailing-lists and they had the same problem, but they managed to fix it (and didn't post the solution >:( ). Has anyone else been migrating to a newer GCC version recently and found himself in front of this problem?
Thanks