Re: How to turn this warning off?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sergei Organov wrote:
> Hello,
>
> I can't find a command-line switch to turn off the following warning:
>
> $ gcc -c warn.cc
> warn.cc: In function 'void g(float)':
> warn.cc:2: warning: passing 'float' for argument 1 to 'void f(int)'
>   

Have you considered not passing a float?  Or performing a cast? 

Also you're compiling a .cc file which GCC assumes is C++ not C. 

Tom

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux