-Wconversion is broken for 'short' parameters.
Veksler Michael
mveksler@techunix.technion.ac.il
Wed Jul 26 23:30:00 GMT 2000
Hello,
I have tested the following example with -Wconversion:
void foo(short);
int main()
{
short s=1;
foo(s);
return 0;
}
This gives the following (obviously wrong) warning:
warning: passing arg 1 of `foo' with different width due to prototype
gcc versions tested:
1. gcc version 2.95.2 19991024 (release)
2. gcc version 2.96 20000722 (experimental)
Michael
More information about the Gcc-bugs
mailing list