Hey guys I keep getting this error when I'm compiling the server on CentOS. I did everything according to the Installation guide in the Wiki but no matter what I do I still get this. I've tried compiling the server on Windows 10 with VS13 with the same files and it works flawlessly but on CentOS it doesn't seem to. What could be wrong?
strlib.c: In function ‘strlib_normalize_name’:
strlib.c:193: warning: logical ‘&&’ with non-zero constant will always evaluate as true
strlib.c:203: warning: logical ‘&&’ with non-zero constant will always evaluate as true
strlib.c:210: warning: logical ‘&&’ with non-zero constant will always evaluate as true
strlib.c: In function ‘strlib_e_mail_check’:
strlib.c:314: warning: logical ‘&&’ with non-zero constant will always evaluate as true
strlib.c: In function ‘sv_escape_c’:
strlib.c:767: warning: logical ‘&&’ with non-zero constant will always evaluate as true
CC sysinfo.c
CC thread.c
CC timer.c
CC utils.c
CC console.c
CC core.c
CC memmgr.c
memmgr.c: In function ‘malloc_verify_ptr’:
memmgr.c:938: warning: logical ‘&&’ with non-zero constant will always evaluate as true
CC socket.c
AR obj_all/common.a
MKDIR obj_sql
CC sql.c
sql.c: In function ‘SqlStmt_BindParam’:
sql.c:656: error: #pragma GCC diagnostic not allowed inside functions
sql.c:657: error: #pragma GCC diagnostic not allowed inside functions
sql.c:664: warning: cast discards qualifiers from pointer target type
sql.c:665: error: #pragma GCC diagnostic not allowed inside functions
make[1]: *** [obj_sql/sql.o] Error 1
make[1]: Leaving directory `/root/Desktop/Hercules/src/common'
make: *** [common_sql] Error 2
Any help would be greatly appreciated!