my_global.h:560: warning: function declaration isn’t a prototype
Posted by: Nulik Nol
Date: August 19, 2011 05:47AM

Hi,
I always get a warning '/usr/include/mysql/my_global.h:560: warning: function declaration isn’t a prototype' when I compile code with mysql library. How can I get rid of it?

The gcc command is this:

gcc -ggdb -Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast -Wunused -Winline -Wno-format -Wstrict-prototypes -Wimplicit-function-declaration -I/usr/include/mysql -I./ -L/usr/lib/mysql -L/usr/local/lib -c agent.c
In file included from agent.c:1:
/usr/include/mysql/my_global.h:560: warning: function declaration isn’t a prototype
agent.c: In function ‘main’:

My .c file uses this headers (in this order):
#include <my_global.h>
#include <mysql.h>


Will appriciate any suggestions
Regards

Options: ReplyQuote


Subject
Views
Written By
Posted
my_global.h:560: warning: function declaration isn’t a prototype
1867
August 19, 2011 05:47AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.