]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
get rid of more clang warnings
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 3 Jan 2011 07:19:48 +0000 (07:19 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 3 Jan 2011 07:19:48 +0000 (07:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10692 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c
clvm_cmds.c
protocol.c

index 890be7e05bc792e37fb1827679b0bdb4b762b364..dd9f550420347e45551e55c1326e47324ffa6e2f 100644 (file)
@@ -4092,7 +4092,7 @@ void CL_ParseServerMessage(void)
                                        MSG_ReadCoord(cls.protocol);
                                        MSG_ReadCoord(cls.protocol);
                                        MSG_ReadCoord(cls.protocol);
-                                       MSG_ReadByte();
+                                       (void) MSG_ReadByte();
                                        MSG_ReadLong();
                                        MSG_ReadLong();
                                        MSG_ReadString();
@@ -4107,7 +4107,7 @@ void CL_ParseServerMessage(void)
                                        MSG_ReadCoord(cls.protocol);
                                        MSG_ReadCoord(cls.protocol);
                                        MSG_ReadCoord(cls.protocol);
-                                       MSG_ReadByte();
+                                       (void) MSG_ReadByte();
                                        MSG_ReadString();
                                }
                                else
index 9c1247ce9a7da96ae35ea46893a710634fe43942..74326a44b0471c273d4997a3a0364cdb9674f9fd 100644 (file)
@@ -1545,7 +1545,7 @@ static void VM_CL_ReadPicture (void)
                        // texture found and loaded
                        // skip over the jpeg as we don't need it
                        for(i = 0; i < size; ++i)
-                               MSG_ReadByte();
+                               (void) MSG_ReadByte();
                }
                else
                {
index 5f1d5e4edc7e9c94c01d79e10318bb37c11e86ce..0c5984e2de08da030b8952c1ca15db669605c71b 100644 (file)
@@ -2866,10 +2866,10 @@ void EntityStateQW_ReadPlayerUpdate(void)
                if (bits & QW_CM_UP)
                        MSG_ReadShort(); // cmd->upmove
                if (bits & QW_CM_BUTTONS)
-                       MSG_ReadByte(); // cmd->buttons
+                       (void) MSG_ReadByte(); // cmd->buttons
                if (bits & QW_CM_IMPULSE)
-                       MSG_ReadByte(); // cmd->impulse
-               MSG_ReadByte(); // cmd->msec
+                       (void) MSG_ReadByte(); // cmd->impulse
+               (void) MSG_ReadByte(); // cmd->msec
        }
        if (playerflags & QW_PF_VELOCITY1)
                velocity[0] = MSG_ReadShort();