c/6614: incorrect conversion warning for function taking a short
josh.dybnis@sandtechnology.com
josh.dybnis@sandtechnology.com
Thu May 9 14:46:00 GMT 2002
>Number: 6614
>Category: c
>Synopsis: incorrect conversion warning for function taking a short
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 09 14:46:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Josh Dybnis
>Release: 2.95.3-6 mingw build
>Organization:
>Environment:
Windows XP/mingw
>Description:
incorrectly warns:
warning: passing arg 1 of `func' with different width due to prototype
when compiling:
void func (short);
void short_test (void)
{ short x = 0;
func(x);
}
with command line:
gcc -Wconversion -c test.c
>How-To-Repeat:
gcc -Wconversion -c test.c
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list