* warning against common symbols
@ 2005-01-27 6:01 GNVS Sudhakar
0 siblings, 0 replies; only message in thread
From: GNVS Sudhakar @ 2005-01-27 6:01 UTC (permalink / raw)
To: gcc-help
Hi,
How do I get a warning if I use any library function by mistake? For
example I should get a warning if I try to compile the following program
(tried -Wl,--warn-common option but it didn't work.):
/*openlog is a c library function*/
void openlog(void)
{
volatile int i=0;
i++;
}
int main(void)
{
openlog();
return 0;
}
Thanks
Sudhakar
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-27 6:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-27 6:01 warning against common symbols GNVS Sudhakar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).