[Bug c/71202] New: GCC's -funsigned-char ignored by -Wpointer-sign
ideasman42 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu May 19 17:39:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71202
Bug ID: 71202
Summary: GCC's -funsigned-char ignored by -Wpointer-sign
Product: gcc
Version: 6.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: ideasman42 at gmail dot com
Target Milestone: ---
Created attachment 38529
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38529&action=edit
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
More information about the Gcc-bugs
mailing list