diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-03-07 06:24:23 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-03-07 06:24:23 +0300 |
commit | b4e13ae575b886d245c4953150cd23edbf91c4ba (patch) | |
tree | 48ed9cbca2f4006ff9412294b3fc37f475b4067f /source/blender/blenkernel/intern/BME_mesh.c | |
parent | 5ea3956e4e6398fe27a4ce7d6b1c5a1a29134c40 (diff) |
Another big purge of warnings. (Main culprits this time were Campbell and Geoffrey):
* no newline at end of file (2-3)
* uninitialised vars (1)
* unused vars (1-2)
* assigning/comparing pointers and ints (numerous)
* etc.
Diffstat (limited to 'source/blender/blenkernel/intern/BME_mesh.c')
-rw-r--r-- | source/blender/blenkernel/intern/BME_mesh.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/BME_mesh.c b/source/blender/blenkernel/intern/BME_mesh.c index dfd86f8af8b..b6049f8c0a7 100644 --- a/source/blender/blenkernel/intern/BME_mesh.c +++ b/source/blender/blenkernel/intern/BME_mesh.c @@ -153,8 +153,7 @@ int BME_model_begin(BME_Mesh *bm){ } void BME_model_end(BME_Mesh *bm){ - BME_Mesh *badmesh; - int meshok,backupok, totvert, totedge, totpoly, totloop; + int meshok, totvert, totedge, totpoly, totloop; totvert = BLI_countlist(&(bm->verts)); totedge = BLI_countlist(&(bm->edges)); @@ -166,7 +165,10 @@ void BME_model_end(BME_Mesh *bm){ if(bm->lpar) MEM_freeN(bm->lpar); if(bm->plar) MEM_freeN(bm->plar); - bm->vtar = bm->edar = bm->lpar = bm->plar = NULL; + bm->vtar = NULL; + bm->edar = NULL; + bm->lpar = NULL; + bm->plar = NULL; bm->vtarlen = bm->edarlen = bm->lparlen = bm->plarlen = 1024; |