From: Giuseppe Bilotta Date: Mon, 8 Aug 2011 14:13:48 +0000 (+0200) Subject: Always return from non-void functions X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=163c38e175f7604ae5d1e3de20674f0da5e21b9c;p=zefram%2Fminetest%2Fminetest_engine.git Always return from non-void functions This quiets a warning in Clang. --- diff --git a/src/utility.h b/src/utility.h index 497f79fa..df151fd8 100644 --- a/src/utility.h +++ b/src/utility.h @@ -1456,6 +1456,8 @@ public: i.getNode()->getValue()); } + return *this; + } Settings & operator=(Settings &other) diff --git a/src/voxel.h b/src/voxel.h index 6d1a318f..51df1829 100644 --- a/src/voxel.h +++ b/src/voxel.h @@ -453,12 +453,14 @@ public: if(m_area.contains(p) == false) return false; m_data[m_area.index(p)] = n; + return true; } bool setNodeNoEmerge(s32 i, MapNode n) { if(m_area.contains(i) == false) return false; m_data[i] = n; + return true; } /*bool setContentNoEmerge(v3s16 p, u8 c) {