diff options
author | Davide Beatrici <davidebeatrici@gmail.com> | 2019-10-07 09:49:47 +0300 |
---|---|---|
committer | Davide Beatrici <davidebeatrici@gmail.com> | 2019-10-07 09:49:47 +0300 |
commit | efb3c835121a83e3089c1f7e30f6ba01060bd92b (patch) | |
tree | 5d94f0923d20f260bb605156ab20eb4af1b03483 /src/murmur/Messages.cpp | |
parent | fc02822fb32b796bd138dd055a048e53da39e23e (diff) |
Fix dangling else warning in Server::msgACL()
This commit fixes a warning encountered today on FreeBSD, probably because Clang was updated and now `-Wdangling-else` is enabled by default.
Messages.cpp:1330:5: error: add explicit braces to avoid dangling else [-Werror,-Wdangling-else]
foreach(int id, pg->members()) {
^
Diffstat (limited to 'src/murmur/Messages.cpp')
-rw-r--r-- | src/murmur/Messages.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/murmur/Messages.cpp b/src/murmur/Messages.cpp index 11e283553..c2ae3e769 100644 --- a/src/murmur/Messages.cpp +++ b/src/murmur/Messages.cpp @@ -1326,11 +1326,12 @@ void Server::msgACL(ServerUser *uSource, MumbleProto::ACL &msg) { group->add_remove(id); } } - if (pg) + if (pg) { foreach(int id, pg->members()) { qsId.insert(id); group->add_inherited_members(id); } + } } sendMessage(uSource, msg); |