I have some trouble when it compiling plugins with (make plugins), overall when compiling server with make sql it was fine but when i do compile plugins it give me some warning just warning, if anyone can shed the light please...
gcc version: gcc (GCC) 4.9.3
Warning
MAKE pluginsmake[1]: Entering directory '/home/Admin/Hercules-master/src/plugins' CC HPMHooking.c (CHAR)HPMHooking.c:1:0: warning: -fPIC ignored for target (all code is position independent) // Copyright (c) Hercules Dev Team, licensed under GNU GPL. ^ PLUGIN HPMHooking_char CC HPMHooking.c (LOGIN)HPMHooking.c:1:0: warning: -fPIC ignored for target (all code is position independent) // Copyright (c) Hercules Dev Team, licensed under GNU GPL. ^ PLUGIN HPMHooking_login CC HPMHooking.c (MAP)HPMHooking.c:1:0: warning: -fPIC ignored for target (all code is position independent) // Copyright (c) Hercules Dev Team, licensed under GNU GPL. ^ PLUGIN HPMHooking_map CC sendmail.csendmail.c:1:0: warning: -fPIC ignored for target (all code is position independent) //===== Hercules Plugin ====================================== ^sendmail.c: In function ‘buildin_sendmail’:sendmail.c:144:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if ( sd = map->charid2sd( charid ) ) { ^sendmail.c:166:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 17 has type ‘time_t’ [-Wformat=] if ( SQL->Query( map->mysql_handle, "insert into mail ( dest_id, send_name, title, message, zeny, nameid, amount, refine, attribute, identify, card0, card1, card2, card3, time ) values ( %d, '%s', '%s', '%s', %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d )", charid, send_name, title, body, zeny, itemid, amount, refine, attribute, identify, card0, card1, card2, card3, time(NULL) ) == SQL_ERROR ) ^ PLUGIN sendmailmake[1]: Leaving directory '/home/Admin/Hercules-master/src/plugins'
Hi there..
I have some trouble when it compiling plugins with (make plugins), overall when compiling server with make sql it was fine but when i do compile plugins it give me some warning just warning, if anyone can shed the light please...
gcc version: gcc (GCC) 4.9.3
Warning
Share this post
Link to post
Share on other sites