[root@localhost hercules]# git pull remote: Counting objects: 73, done. remote: Compressing objects: 100% (72/72), done. remote: Total 73 (delta 30), reused 1 (delta 1), pack-reused 0 Unpacking objects: 100% (73/73), done. From https://github.com/HerculesWS/Hercules + 9acebb6...5e61357 cppcheck-fixes -> origin/cppcheck-fixes (forced update) + eef3534...a627891 deprecationwarning -> origin/deprecationwarning (forced update) 8748ee5..21f9923 master -> origin/master Updating 8748ee5..21f9923 Fast-forward doc/constants.md | 25 +++++++++++++++++++++++++ src/char/char.c | 10 ++++++---- src/common/mmo.h | 10 ++++++---- src/map/atcommand.c | 4 ++-- src/map/chrif.c | 5 +++-- src/map/guild.c | 30 ++++++++++++++++-------------- src/map/homunculus.c | 11 ++++++----- src/map/intif.c | 2 +- src/map/mercenary.c | 18 +++++++++++------- src/map/mob.c | 12 +++++++----- src/map/party.c | 27 ++++++++++++++++++--------- src/map/script.c | 10 +++++----- src/map/skill.c | 42 +++++++++++++++++++++--------------------- src/map/status.c | 47 ++++++++++++++++++++++++----------------------- 14 files changed, 151 insertions(+), 102 deletions(-) [root@localhost hercules]# make clean make[1]: Entering directory `/usr/local/hercules/src/common' CLEAN common (build temp files) CLEAN common make[1]: Leaving directory `/usr/local/hercules/src/common' make[1]: Entering directory `/usr/local/hercules/3rdparty/mt19937ar' CLEAN mt19937ar (build temp files) CLEAN mt19937ar make[1]: Leaving directory `/usr/local/hercules/3rdparty/mt19937ar' make[1]: Entering directory `/usr/local/hercules/3rdparty/libconfig' CLEAN libconfig (build temp files) CLEAN libconfig make[1]: Leaving directory `/usr/local/hercules/3rdparty/libconfig' make[1]: Entering directory `/usr/local/hercules/src/login' CLEAN login (build temp files) CLEAN login make[1]: Leaving directory `/usr/local/hercules/src/login' make[1]: Entering directory `/usr/local/hercules/src/char' CLEAN char (build temp files) CLEAN char make[1]: Leaving directory `/usr/local/hercules/src/char' make[1]: Entering directory `/usr/local/hercules/src/map' CLEAN map (build temp files) CLEAN map make[1]: Leaving directory `/usr/local/hercules/src/map' make[1]: Entering directory `/usr/local/hercules/src/plugins' CLEAN plugins (build temp files) CLEAN plugins make[1]: Leaving directory `/usr/local/hercules/src/plugins' make[1]: Entering directory `/usr/local/hercules/src/tool' CLEAN tool (build temp files) CLEAN tool make[1]: Leaving directory `/usr/local/hercules/src/tool' make[1]: Entering directory `/usr/local/hercules/src/test' CLEAN test (build temp files) CLEAN test make[1]: Leaving directory `/usr/local/hercules/src/test' make[1]: Entering directory `/usr/local/hercules/tools/HPMHookGen' CLEAN HPMHookGen make[1]: Leaving directory `/usr/local/hercules/tools/HPMHookGen' [root@localhost hercules]# ./configure && make sql checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking whether make sets $(MAKE)... yes checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking how to run the C preprocessor... gcc -E checking for ar... /usr/bin/ar checking whether byte ordering is bigendian... no checking whether gcc produces 32bit code... no checking whether gcc supports __thread specifier (TLS)... yes checking whether gcc accepts -rdynamic... yes checking whether gcc supports -Wno-unused-parameter... yes checking whether gcc can actually use -Wno-unused-parameter... yes checking whether gcc supports -Wno-clobbered... yes checking whether gcc supports -Wempty-body... yes checking whether gcc supports -Wnewline-eof... no checking whether gcc supports -Wint-conversion... no checking whether gcc supports -Winit-self... yes checking whether gcc supports -Wpointer-arith... yes checking whether gcc supports -Wswitch-bool... no checking whether gcc supports -Wenum-conversion... no checking whether gcc supports -Wshorten-64-to-32... no checking whether gcc supports -Wconstant-conversion... no checking whether gcc supports -Wbool-conversion... no checking whether gcc supports -Wformat-security... yes checking whether gcc supports -Wformat... yes checking whether gcc supports -Wformat-signedness... no checking whether gcc supports -Wformat-y2k... yes checking whether gcc supports -Wmissing-include-dirs... no checking whether gcc supports -Wsuggest-attribute=noreturn... no checking whether gcc supports -Wundef... yes checking whether gcc supports -Wlogical-op... yes checking whether gcc supports -Wnested-externs... yes checking whether gcc supports -Wold-style-definition... yes checking whether gcc supports -Woverlength-strings... yes checking whether gcc supports -Wredundant-decls... yes checking whether gcc supports -Wno-format-nonliteral... yes checking whether gcc supports -Wno-switch... yes checking whether gcc supports -Wno-missing-field-initializers... yes checking whether gcc supports -Wshadow... yes checking whether gcc can efficiently use -Wshadow... no checking whether gcc supports -fPIC... yes checking how to make shared objects... -shared yes checking whether gcc needs -Wl,--no-undefined to check for undefined references in shared objects... yes checking whether gcc supports -fno-strict-aliasing... yes checking for setrlimit... yes checking for strnlen... yes checking for uselocale... yes checking for newlocale... yes checking for freelocale... yes checking xlocale.h usability... yes checking xlocale.h presence... yes checking for xlocale.h... yes checking host OS... Linux checking for MinGW... no checking for library containing inflateEnd... -lz checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for library containing sqrt... -lm checking for library containing clock_gettime... -lrt checking whether CLOCK_MONOTONIC is supported and works... yes checking for library containing pthread_create... none required checking for library containing pthread_sigmask... none required checking for library containing pthread_attr_init... none required checking for library containing pthread_attr_setstacksize... none required checking for library containing pthread_attr_destroy... none required checking for library containing pthread_cancel... none required checking for library containing pthread_join... none required checking execinfo.h usability... yes checking execinfo.h presence... yes checking for execinfo.h... yes checking for library containing backtrace... none required checking for mysql_config... /usr/bin/mysql_config checking for mysql_init... yes checking mysql.h usability... yes checking mysql.h presence... yes checking for mysql.h... yes checking MySQL library (required)... yes (5.1.73) checking PCRE library... checking pcre.h usability... yes checking pcre.h presence... yes checking for pcre.h... yes checking for library containing pcre_study... -lpcre checking for doxygen... no checking for perl... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/common/Makefile config.status: creating 3rdparty/mt19937ar/Makefile config.status: creating 3rdparty/libconfig/Makefile config.status: creating src/char/Makefile config.status: creating src/login/Makefile config.status: creating src/map/Makefile config.status: creating src/plugins/Makefile config.status: creating src/tool/Makefile config.status: creating src/test/Makefile config.status: creating tools/HPMHookGen/Makefile MAKE mt19937ar make[1]: Entering directory `/usr/local/hercules/3rdparty/mt19937ar' CC mt19937ar.c make[1]: Leaving directory `/usr/local/hercules/3rdparty/mt19937ar' MAKE libconfig make[1]: Entering directory `/usr/local/hercules/3rdparty/libconfig' CC libconfig.c CC grammar.c CC scanctx.c CC scanner.c CC strbuf.c make[1]: Leaving directory `/usr/local/hercules/3rdparty/libconfig' MAKE common_sql make[1]: Entering directory `/usr/local/hercules/src/common' MKDIR obj_all CC conf.c CC db.c CC des.c CC ers.c CC grfio.c CC HPM.c CC mapindex.c CC md5calc.c CC mutex.c CC nullpo.c CC random.c CC showmsg.c CC strlib.c 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 AR obj_sql/common_sql.a 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_mini.a make[1]: Leaving directory `/usr/local/hercules/src/common' MAKE login_sql make[1]: Entering directory `/usr/local/hercules/src/login' MKDIR obj_sql CC account_sql.c CC HPMlogin.c CC ipban_sql.c CC login.c CC loginlog_sql.c LD login-server make[1]: Leaving directory `/usr/local/hercules/src/login' MAKE char_sql make[1]: Entering directory `/usr/local/hercules/src/char' MKDIR obj_sql CC char.c char.c: In function ‘char_check_char_name’: char.c:1624: warning: logical ‘&&’ with non-zero constant will always evaluate as true char.c:1630: warning: logical ‘&&’ with non-zero constant will always evaluate as true CC HPMchar.c CC loginif.c CC mapif.c CC geoip.c CC inter.c inter.c: In function ‘mapif_parse_NameChangeRequest’: inter.c:1274: warning: logical ‘&&’ with non-zero constant will always evaluate as true inter.c:1280: warning: logical ‘&&’ with non-zero constant will always evaluate as true CC int_auction.c CC int_elemental.c CC int_guild.c int_guild.c: In function ‘mapif_parse_CreateGuild’: int_guild.c:1183: warning: logical ‘&&’ with non-zero constant will always evaluate as true int_guild.c:1189: warning: logical ‘&&’ with non-zero constant will always evaluate as true CC int_homun.c int_homun.c: In function ‘mapif_homunculus_rename’: int_homun.c:291: warning: logical ‘&&’ with non-zero constant will always evaluate as true int_homun.c:297: warning: logical ‘&&’ with non-zero constant will always evaluate as true CC int_mail.c CC int_mercenary.c CC int_party.c int_party.c: In function ‘mapif_parse_CreateParty’: int_party.c:495: warning: logical ‘&&’ with non-zero constant will always evaluate as true int_party.c:508: warning: logical ‘&&’ with non-zero constant will always evaluate as true CC int_pet.c CC int_quest.c CC int_storage.c CC pincode.c LD char-server make[1]: Leaving directory `/usr/local/hercules/src/char' MAKE map_sql make[1]: Entering directory `/usr/local/hercules/src/map' MKDIR obj_sql CC atcommand.c CC battle.c CC battleground.c CC buyingstore.c CC channel.c CC chat.c CC chrif.c CC clif.c CC date.c CC duel.c CC elemental.c CC guild.c CC homunculus.c CC HPMmap.c CC instance.c CC intif.c CC irc-bot.c CC itemdb.c CC log.c CC mail.c CC map.c CC mapreg_sql.c CC mercenary.c CC mob.c CC npc.c CC npc_chat.c CC party.c CC path.c CC pc.c pc.c: In function ‘pc_split_atoi’: pc.c:10593: warning: logical ‘&&’ with non-zero constant will always evaluate as true pc.c: In function ‘pc_split_atoui’: pc.c:10621: warning: logical ‘&&’ with non-zero constant will always evaluate as true CC pc_groups.c CC pet.c CC quest.c CC script.c CC searchstore.c CC skill.c CC status.c CC storage.c CC trade.c CC unit.c CC vending.c LD map-server make[1]: Leaving directory `/usr/local/hercules/src/map' building conf/import folder... [root@localhost hercules]# cat /etc/redhat-release CentOS release 6.7 (Final) [root@localhost hercules]# gcc --version gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [root@localhost hercules]# uname -a Linux localhost 2.6.32-573.7.1.el6.x86_64 #1 SMP Tue Sep 22 22:00:00 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux