This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bogus unused warning on static function used in public alias
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Bogus unused warning on static function used in public alias
- From: Horst von Brand <vonbrand at pincoya dot inf dot utfsm dot cl>
- Date: Thu, 16 Mar 2000 08:24:19 -0400
- cc: Bugs at pincoya dot inf dot utfsm dot cl
The proggie at the end, when compiled with -Wall, gives a bogus warning:
tst.c:2: warning: `sf' defined but not used
static int sf(int x)
{
return x + 3;
}
int pf(int x) __attribute__((alias("sf")));
Tried egcs-1.1.2 (RH 6.1) and 20000306.
You are more than welcome to use it as you please.
--
Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513