diff options
author | Haru <haru@dotalux.com> | 2014-04-12 04:50:02 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-04-12 04:50:02 +0200 |
commit | f4a566fc7f7bd0e9bbbe01c7341150ba3c12a03f (patch) | |
tree | 836b1b59573430c21ea191c4615dbf97cb347bc8 /src/map/chrif.c | |
parent | 6f6a6b3db3b36846f68e6b8ccb59351dced66ab3 (diff) | |
download | hercules-f4a566fc7f7bd0e9bbbe01c7341150ba3c12a03f.tar.gz hercules-f4a566fc7f7bd0e9bbbe01c7341150ba3c12a03f.tar.bz2 hercules-f4a566fc7f7bd0e9bbbe01c7341150ba3c12a03f.tar.xz hercules-f4a566fc7f7bd0e9bbbe01c7341150ba3c12a03f.zip |
Fixed some compiler/analyzer warnings.
- Sanitized some macros (they weren't going to cause problems, but
better being safe than sorry)
- Parenthesized an incorrect expression in 6f6a6b3.
- Inverted an if(foo); else bar; statement in 6f6a6b3 to get rid of the
empty expression (for legibility).
- Commented out some unnecessary lines as suggested by clang's static
analyzer.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r-- | src/map/chrif.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index 0458990bb..99a1935fd 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -841,10 +841,8 @@ bool chrif_char_ask_name_answer(int acc, const char* player_name, uint16 type, u * Request char server to change sex of char (modified by Yor) *------------------------------------------*/ void chrif_changedsex(int fd) { - int acc, sex; - - acc = RFIFOL(fd,2); - sex = RFIFOL(fd,6); + int acc = RFIFOL(fd,2); + //int sex = RFIFOL(fd,6); // Dead store. Uncomment if needed again. if ( battle_config.etc_log ) ShowNotice("chrif_changedsex %d.\n", acc); |