How to turn this warning off?

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

 



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)'
$ cat warn.cc
extern void f(int);
void g(float x) { f(x); };
$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: [...]
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
$

Any idea except filtering gcc output?

-- Sergei.


[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