------- Comment #8 from axel at zankasoftware dot com 2006-01-16 17:14 ------- There's also the following issue, which seem related.
$ cat test.c void nil_uch(unsigned char *uch) { *uch = 0; } void nil_sch(signed char *sch) { *sch = 0; } int main(void) { char ch = 0; nil_uch(&ch); nil_sch(&ch); return 0; } $ gcc --version powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5250) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ gcc -o test test.c test.c: In function 'main': test.c:14: warning: pointer targets in passing argument 1 of 'nil_uch' differ in signedness test.c:15: warning: pointer targets in passing argument 1 of 'nil_sch' differ in signedness I'd expect the warning to be muted in one of the calls, depending on -f{un}signed-char. -- axel at zankasoftware dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |axel at zankasoftware dot | |com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23087