Fix a few compiler warnings reported by clang.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 18 Aug 2013 14:15:51 +0000 (14:15 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 18 Aug 2013 14:15:51 +0000 (14:15 +0000)
source/blender/blenlib/intern/BLI_ghash.c
source/blender/bmesh/tools/bmesh_edgenet.c
source/gameengine/Ketsji/BL_BlenderShader.cpp
source/gameengine/Ketsji/BL_BlenderShader.h

index 8221393d4d5501fde3e0ec981f08030bec036746..03f5d60079b99fd3d1d0d2c72cbd0700ce6c63ff 100644 (file)
@@ -69,7 +69,7 @@ typedef struct Entry {
        void *key, *val;
 } Entry;
 
-typedef struct GHash {
+struct GHash {
        GHashHashFP hashfp;
        GHashCmpFP cmpfp;
 
@@ -78,7 +78,7 @@ typedef struct GHash {
        unsigned int nbuckets;
        unsigned int nentries;
        unsigned short cursize, flag;
-} GHash;
+};
 
 
 /* -------------------------------------------------------------------- */
index ed5d47e9391f47468aec9a50e75ca28ebefabf9a..18efb9acd78e810da36091e122421e581e829eea 100644 (file)
@@ -117,7 +117,7 @@ static unsigned int bm_edgenet_path_from_pass(
                v_ls_tot += 1;
                v = vn->prev;
                vn = &vnet_info[BM_elem_index_get(v)];
-       } while ((vn->pass == pass));
+       } while (vn->pass == pass);
 
        return v_ls_tot;
 }
@@ -145,7 +145,7 @@ static bool bm_edgenet_path_check_overlap(
                        v_ls_tot += 1;
                        v = vn->prev;
                        vn = &vnet_info[BM_elem_index_get(v)];
-               } while ((vn->pass == pass));
+               } while (vn->pass == pass);
        }
 
        if (v_ls_tot) {
index 97dc8f72aec687e0cc9a06d95e64e705a60ac88b..6f6925dcf760ffdbd74969bfae75403c962cfc8a 100644 (file)
@@ -44,7 +44,6 @@
  
 BL_BlenderShader::BL_BlenderShader(KX_Scene *scene, struct Material *ma, int lightlayer)
 :
-       mScene(scene),
        mMat(ma),
        mLightLayer(lightlayer),
        mGPUMat(NULL)
index 6d56c06e090aa59cd35b957aba62cd6eb3f3324f..e03bb5a11d9b47517b616bc8b3201a048d5e5ae6 100644 (file)
@@ -57,7 +57,6 @@ class BL_Material;
 class BL_BlenderShader
 {
 private:
-       KX_Scene                *mScene;
        struct Scene    *mBlenderScene;
        struct Material *mMat;
        int                             mLightLayer;