From 5311a275235d2132443643199330953c877b794a 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 0a1619b3f..1020e35f5 100644 --- 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