ddnet/src/game/server
bors[bot] 564a59d603
Merge #4845
4845: Enable -Wshadow=local r=Jupeyy a=def-

> Warn when a local variable shadows another local variable or parameter.

Found one actual bug in graphics_threaded.cpp

Should reduce confusion in the future when reading source code

<!-- What is the motivation for the changes of this pull request -->

## Checklist

- [ ] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: def <dennis@felsin9.de>
2022-03-20 16:45:22 +00:00
..
entities Enable -Wshadow=local 2022-03-20 13:24:34 +01:00
gamemodes Refactoring of g_Config.m_SvTeam, See #4601 2022-02-19 18:11:15 +01:00
alloc.h maybe_unused with older compilers 2021-11-04 10:59:25 +01:00
ddracechat.cpp Add contributor 2022-03-18 14:41:48 +01:00
ddracecommands.cpp Don't mute for 0 seconds (fixes #4816) 2022-03-13 11:09:06 +01:00
entity.cpp fix 4781 and refactor of the client id for server demos 2022-03-07 19:03:43 +01:00
entity.h Add some further readability checks, mostly redundancy 2022-01-22 17:22:01 +01:00
eventhandler.cpp fix 4781 and refactor of the client id for server demos 2022-03-07 19:03:43 +01:00
eventhandler.h uint64 -> uint64_t, int64 -> int64_t 2021-06-24 17:19:17 +02:00
gamecontext.cpp Merge #4845 2022-03-20 16:45:22 +00:00
gamecontext.h Remove unnecessary trailing semicolons after method declarations 2022-03-08 20:01:26 +01:00
gamecontroller.cpp Enable -Wshadow=local 2022-03-20 13:24:34 +01:00
gamecontroller.h Make spawn position independent of players in other teams 2022-02-06 00:01:50 +01:00
gameworld.cpp use TEAM_SPECTATORS and SPEC_FREEVIEW instead of -1 2022-03-07 22:16:28 +01:00
gameworld.h Init m_pNextTraverseEntity 2022-02-09 15:26:50 +01:00
player.cpp make spectators team independent 2022-03-14 13:25:47 +01:00
player.h Remove unnecessary trailing semicolons after method declarations 2022-03-08 20:01:26 +01:00
save.cpp Refactoring of g_Config.m_SvTeam, See #4601 2022-02-19 18:11:15 +01:00
save.h Remove unnecessary trailing semicolons after method declarations 2022-03-08 20:01:26 +01:00
score.cpp Refactoring of g_Config.m_SvTeam, See #4601 2022-02-19 18:11:15 +01:00
score.h Factor CScoreWorker out of CScore, add SaveScore test 2021-12-19 19:40:20 +01:00
scoreworker.cpp Enable -Wshadow=local 2022-03-20 13:24:34 +01:00
scoreworker.h Factor CScoreWorker out of CScore, add SaveScore test 2021-12-19 19:40:20 +01:00
teams.cpp Enable -Wshadow=local 2022-03-20 13:24:34 +01:00
teams.h Refactoring of g_Config.m_SvTeam, See #4601 2022-02-19 18:11:15 +01:00
teehistorian.cpp Record player_ready event in teehistorian 2022-02-07 23:31:46 +01:00
teehistorian.h Record player_ready event in teehistorian 2022-02-07 23:31:46 +01:00
teeinfo.cpp Fix variable names manually 2020-11-02 22:40:40 +01:00
teeinfo.h Run clang-format 2020-09-26 21:50:15 +02:00