This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

-Wconversion is broken for 'short' parameters.


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]