Fix a few compiler warnings reported by clang.

This commit is contained in:
Brecht Van Lommel
2013-08-18 14:15:51 +00:00
parent 2fd11a6617
commit a2541508ac
4 changed files with 4 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ typedef struct Entry {
void *key, *val; void *key, *val;
} Entry; } Entry;
typedef struct GHash { struct GHash {
GHashHashFP hashfp; GHashHashFP hashfp;
GHashCmpFP cmpfp; GHashCmpFP cmpfp;
@@ -78,7 +78,7 @@ typedef struct GHash {
unsigned int nbuckets; unsigned int nbuckets;
unsigned int nentries; unsigned int nentries;
unsigned short cursize, flag; unsigned short cursize, flag;
} GHash; };
/* -------------------------------------------------------------------- */ /* -------------------------------------------------------------------- */

View File

@@ -117,7 +117,7 @@ static unsigned int bm_edgenet_path_from_pass(
v_ls_tot += 1; v_ls_tot += 1;
v = vn->prev; v = vn->prev;
vn = &vnet_info[BM_elem_index_get(v)]; vn = &vnet_info[BM_elem_index_get(v)];
} while ((vn->pass == pass)); } while (vn->pass == pass);
return v_ls_tot; return v_ls_tot;
} }
@@ -145,7 +145,7 @@ static bool bm_edgenet_path_check_overlap(
v_ls_tot += 1; v_ls_tot += 1;
v = vn->prev; v = vn->prev;
vn = &vnet_info[BM_elem_index_get(v)]; vn = &vnet_info[BM_elem_index_get(v)];
} while ((vn->pass == pass)); } while (vn->pass == pass);
} }
if (v_ls_tot) { if (v_ls_tot) {

View File

@@ -44,7 +44,6 @@
BL_BlenderShader::BL_BlenderShader(KX_Scene *scene, struct Material *ma, int lightlayer) BL_BlenderShader::BL_BlenderShader(KX_Scene *scene, struct Material *ma, int lightlayer)
: :
mScene(scene),
mMat(ma), mMat(ma),
mLightLayer(lightlayer), mLightLayer(lightlayer),
mGPUMat(NULL) mGPUMat(NULL)

View File

@@ -57,7 +57,6 @@ class BL_Material;
class BL_BlenderShader class BL_BlenderShader
{ {
private: private:
KX_Scene *mScene;
struct Scene *mBlenderScene; struct Scene *mBlenderScene;
struct Material *mMat; struct Material *mMat;
int mLightLayer; int mLightLayer;