projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
212a112
)
Silence GCC warning in mapblock_mesh
author
SmallJoker
<mk939@ymail.com>
Mon, 25 May 2020 17:10:23 +0000
(19:10 +0200)
committer
SmallJoker
<mk939@ymail.com>
Mon, 25 May 2020 17:10:23 +0000
(19:10 +0200)
Fixes following warning:
warning: ‘waving’ may be used uninitialized in this function [-Wmaybe-uninitialized]
src/client/mapblock_mesh.cpp
patch
|
blob
|
history
diff --git
a/src/client/mapblock_mesh.cpp
b/src/client/mapblock_mesh.cpp
index 0a1619b3fe4cb76e5d56eea0c914266c781892a5..1020e35f5f86df0c191e561063e568d07f6a54f4 100644
(file)
--- a/
src/client/mapblock_mesh.cpp
+++ b/
src/client/mapblock_mesh.cpp
@@
-888,7
+888,7
@@
static void updateFastFaceRow(
v3s16 p_corrected;
v3s16 face_dir_corrected;
u16 lights[4] = {0, 0, 0, 0};
- u8 waving;
+ u8 waving
= 0
;
TileSpec tile;
// Get info of first tile