Fix a few compiler warnings reported by clang.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
@@ -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) {
|
||||
|
@@ -44,7 +44,6 @@
|
||||
|
||||
BL_BlenderShader::BL_BlenderShader(KX_Scene *scene, struct Material *ma, int lightlayer)
|
||||
:
|
||||
mScene(scene),
|
||||
mMat(ma),
|
||||
mLightLayer(lightlayer),
|
||||
mGPUMat(NULL)
|
||||
|
@@ -57,7 +57,6 @@ class BL_Material;
|
||||
class BL_BlenderShader
|
||||
{
|
||||
private:
|
||||
KX_Scene *mScene;
|
||||
struct Scene *mBlenderScene;
|
||||
struct Material *mMat;
|
||||
int mLightLayer;
|
||||
|
Reference in New Issue
Block a user