This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
-Wconversion is broken for 'short' parameters.
- To: gcc-bugs at gcc dot gnu dot org
- Subject: -Wconversion is broken for 'short' parameters.
- From: Veksler Michael <mveksler at techunix dot technion dot ac dot il>
- Date: Thu, 27 Jul 2000 09:30:28 +0300 (IDT)
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