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;
} 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;
};
/* -------------------------------------------------------------------- */

View 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) {

View 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)

View File

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