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]

Bogus unused warning on static function used in public alias


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

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