Created attachment 38529 [details] Source file to reproduce the bug. When passing `char *` arguments to functions which take a `unsigned char *`, this raises a -Wpointer-sign warning, even when `-funsigned-char` is used. Attached source file: Compile with: gcc -funsigned-char -Wall foo.c
There are three distant types for char: char, unsigned char, signed char. -funsigned-char/-fsigned-char just changes the signedness of the pain char type, it does not change the type of char to be one of the other types.
The warning message issue with char is recorded as PR 23087 so moving this to be a dup of that issue. *** This bug has been marked as a duplicate of bug 23087 ***