From bcb17676a445c550c1851c42452a357b433abe05 Mon Sep 17 00:00:00 2001 From: Russell Rice Date: Mon, 27 Nov 2006 21:45:50 +0000 Subject: * removal of FEATURE_* defines from codeblocks project * silence some warnings Subversion-branch: /trunk/chocolate-doom Subversion-revision: 760 --- codeblocks/chocolate-doom.cbp | 5 +---- setup/configfile.c | 22 +++++++++++----------- src/net_common.c | 4 ++-- 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/codeblocks/chocolate-doom.cbp b/codeblocks/chocolate-doom.cbp index 1884ed51..e2cf4eea 100644 --- a/codeblocks/chocolate-doom.cbp +++ b/codeblocks/chocolate-doom.cbp @@ -40,9 +40,6 @@ - - - @@ -52,7 +49,7 @@ diff --git a/setup/configfile.c b/setup/configfile.c index f974f043..daba1f52 100644 --- a/setup/configfile.c +++ b/setup/configfile.c @@ -227,16 +227,16 @@ static default_t doom_defaults_list[] = {"usegamma", &usegamma, DEFAULT_INT, 0, 0}, - {"chatmacro0", &chat_macros[0], DEFAULT_STRING, 0 }, - {"chatmacro1", &chat_macros[1], DEFAULT_STRING, 0 }, - {"chatmacro2", &chat_macros[2], DEFAULT_STRING, 0 }, - {"chatmacro3", &chat_macros[3], DEFAULT_STRING, 0 }, - {"chatmacro4", &chat_macros[4], DEFAULT_STRING, 0 }, - {"chatmacro5", &chat_macros[5], DEFAULT_STRING, 0 }, - {"chatmacro6", &chat_macros[6], DEFAULT_STRING, 0 }, - {"chatmacro7", &chat_macros[7], DEFAULT_STRING, 0 }, - {"chatmacro8", &chat_macros[8], DEFAULT_STRING, 0 }, - {"chatmacro9", &chat_macros[9], DEFAULT_STRING, 0 }, + {"chatmacro0", &chat_macros[0], DEFAULT_STRING, 0, 0 }, + {"chatmacro1", &chat_macros[1], DEFAULT_STRING, 0, 0 }, + {"chatmacro2", &chat_macros[2], DEFAULT_STRING, 0, 0 }, + {"chatmacro3", &chat_macros[3], DEFAULT_STRING, 0, 0 }, + {"chatmacro4", &chat_macros[4], DEFAULT_STRING, 0, 0 }, + {"chatmacro5", &chat_macros[5], DEFAULT_STRING, 0, 0 }, + {"chatmacro6", &chat_macros[6], DEFAULT_STRING, 0, 0 }, + {"chatmacro7", &chat_macros[7], DEFAULT_STRING, 0, 0 }, + {"chatmacro8", &chat_macros[8], DEFAULT_STRING, 0, 0 }, + {"chatmacro9", &chat_macros[9], DEFAULT_STRING, 0, 0 }, }; static default_collection_t doom_defaults = @@ -260,7 +260,7 @@ static default_t extra_defaults_list[] = {"vanilla_savegame_limit", &vanilla_savegame_limit, DEFAULT_INT, 0, 0}, {"vanilla_demo_limit", &vanilla_demo_limit, DEFAULT_INT, 0, 0}, #ifdef FEATURE_MULTIPLAYER - {"player_name", &net_player_name, DEFAULT_STRING, 0}, + {"player_name", &net_player_name, DEFAULT_STRING, 0, 0}, #endif }; diff --git a/src/net_common.c b/src/net_common.c index b9a8487d..31444e28 100644 --- a/src/net_common.c +++ b/src/net_common.c @@ -191,7 +191,7 @@ static void NET_Conn_ParseReliableACK(net_connection_t *conn, net_packet_t *pack // Is this an acknowledgement for the first packet in the list? - if (seq == ((conn->reliable_packets->seq + 1) & 0xff)) + if (seq == (unsigned int)((conn->reliable_packets->seq + 1) & 0xff)) { net_reliable_packet_t *rp; @@ -224,7 +224,7 @@ static boolean NET_Conn_ReliablePacket(net_connection_t *conn, return true; } - if (seq != (conn->reliable_recv_seq & 0xff)) + if (seq != (unsigned int)(conn->reliable_recv_seq & 0xff)) { // This is not the next expected packet in the sequence! // -- cgit v1.2.3