From: SmallJoker Date: Mon, 25 May 2020 17:10:23 +0000 (+0200) Subject: Silence GCC warning in mapblock_mesh X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5311a275235d2132443643199330953c877b794a;p=oweals%2Fminetest.git Silence GCC warning in mapblock_mesh Fixes following warning: warning: ‘waving’ may be used uninitialized in this function [-Wmaybe-uninitialized] --- 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