3 msgSetting up a cross-compile
2 msgUnexpected failure-to-warn
1 msgUsing special calling conventions
2 msgPragmas in GCC
11 msgbuilding gcc-4.2.0
2 msgc syntax
2 msgautovectorization
5 msgbuilding gcc 4.2.0
1 msglibgcc_s.so missing copysignl

How to turn this warning off?
\ Sergei Organov (31 May 2007)
. \ Tom St Denis (31 May 2007)
. . \ Sergei Organov (31 May 2007)
. \ Sergei Organov (31 May 2007)

2 msgGCC porting to 64-bit architecture
8 msgCross compiling
3 msgquery regarding LLVM
2 msgProblem when compiling pointers with GNU
2 msgfprintf in passes.c
3 msgRE: GCC Compatibility in C++
1 msgRe: How to force 16-byte alignment with gfortran?
2 msgConflict between compilers
2 msgHow to tell which compiler was used?
1 msgFunction instrumentation
Subject:How to turn this warning off?
Group:Gcc-help
From:Sergei Organov
Date:31 May 2007


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.



© 2004-2008 readlist.com