Always return from non-void functions
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 8 Aug 2011 14:13:48 +0000 (16:13 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 8 Aug 2011 14:13:48 +0000 (16:13 +0200)
This quiets a warning in Clang.

src/utility.h
src/voxel.h

index 497f79fa0dfed76ca441ec5e11824feb5b90a4d0..df151fd87308f89f9a24103ef639ebbd0ecdcff0 100644 (file)
@@ -1456,6 +1456,8 @@ public:
                                        i.getNode()->getValue());
                }
 
+               return *this;
+
        }
 
        Settings & operator=(Settings &other)
index 6d1a318f1e9b9f505d1a849d150806664cc67b14..51df18299af620401c58f09e6a466ef32c278e99 100644 (file)
@@ -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)
        {