From 1fbdbc145c9900228613c431cbb6ecf0d4f60fac Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Mon, 25 May 2020 19:10:23 +0200 Subject: [PATCH] Silence GCC warning in mapblock_mesh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes following warning: warning: ‘waving’ may be used uninitialized in this function [-Wmaybe-uninitialized] --- src/client/mapblock_mesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/mapblock_mesh.cpp b/src/client/mapblock_mesh.cpp index a5bee6b88..e5809a9c8 100644 --- a/src/client/mapblock_mesh.cpp +++ b/src/client/mapblock_mesh.cpp @@ -890,7 +890,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; getTileInfo(data, p, face_dir, makes_face, p_corrected, face_dir_corrected,