From c54e9564bb5a2082c3b7ae6243fc1eac17145e4a Mon Sep 17 00:00:00 2001 From: justgo97 Date: Tue, 10 Jul 2018 15:13:21 +0100 Subject: [PATCH] fix compiling warnings in GCC --- source/src/client.cpp | 4 +++- source/src/clients2c.cpp | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/source/src/client.cpp b/source/src/client.cpp index fffa8290..001b8ed3 100644 --- a/source/src/client.cpp +++ b/source/src/client.cpp @@ -396,7 +396,9 @@ void addmsg(int type, const char *fmt, ...) case 's': { const char *t = va_arg(args, const char *); - if(t) sendstring(t, p); nums++; break; + if(t) sendstring(t, p); + nums++; + break; } } va_end(args); diff --git a/source/src/clients2c.cpp b/source/src/clients2c.cpp index 821abc54..152169ce 100644 --- a/source/src/clients2c.cpp +++ b/source/src/clients2c.cpp @@ -350,8 +350,9 @@ void showhudextras(char hudextras, char value){ { playerent *p = getclient(teamworkid); if (!p || p == player1) teamworkid = -1; - else outf("\f5you covered %s",p->name); break; + else outf("\f5you covered %s",p->name); } + break; default: { if (value >= HE_NUM)