diff options
author | kwolekr <kwolekr@minetest.net> | 2015-01-18 23:29:19 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-01-18 23:29:19 -0500 |
commit | 38bd9e93a252cb2dd5ace6b0132514edff38b504 (patch) | |
tree | 07a891ba1f709cdb1651e7169a0e0a7f80425552 /src/map.cpp | |
parent | e36681101efdfec3ed9cf9d70f7c5296c4124cd6 (diff) | |
download | minetest-38bd9e93a252cb2dd5ace6b0132514edff38b504.tar.gz minetest-38bd9e93a252cb2dd5ace6b0132514edff38b504.tar.bz2 minetest-38bd9e93a252cb2dd5ace6b0132514edff38b504.zip |
Fix all warnings and remove -Wno-unused-but-set cflag
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map.cpp b/src/map.cpp index 434243a10..bd3636c7b 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -3220,8 +3220,6 @@ bool ServerMap::loadSectorMeta(v2s16 p2d) { DSTACK(__FUNCTION_NAME); - MapSector *sector = NULL; - // The directory layout we're going to load from. // 1 - original sectors/xxxxzzzz/ // 2 - new sectors2/xxx/zzz/ @@ -3241,7 +3239,7 @@ bool ServerMap::loadSectorMeta(v2s16 p2d) } try{ - sector = loadSectorMeta(sectordir, loadlayout != 2); + loadSectorMeta(sectordir, loadlayout != 2); } catch(InvalidFilenameException &e) { |