A few compiler warning fixes. Those in BME_customdata.c were more serious.
authorJoshua Leung <aligorith@gmail.com>
Tue, 3 Jun 2008 10:04:42 +0000 (10:04 +0000)
committerJoshua Leung <aligorith@gmail.com>
Tue, 3 Jun 2008 10:04:42 +0000 (10:04 +0000)
source/blender/blenkernel/intern/BME_Customdata.c
source/blender/src/editmesh_tools.c

index 68bc75327d993f508dda31d44e5cf26d17dbab7d..8b48efbdbd23b740fe49625a410a23aaa01db372 100644 (file)
@@ -39,6 +39,7 @@
 #include "BKE_bmeshCustomData.h"
 #include "bmesh_private.h"
 #include <string.h>
+#include "MEM_guardedalloc.h"
 
 /********************* Layer type information **********************/
 typedef struct BME_LayerTypeInfo {
@@ -88,7 +89,7 @@ void BME_CD_Create(BME_CustomData *data, BME_CustomDataInit *init, int initalloc
                        if(init->layout[i]){
                                info = BME_layerType_getInfo(i);
                                for(j=0; j < init->layout[i]; j++){
-                                       if(j=0) data->layers[j+i].active = init->active[i];
+                                       if(j==0) data->layers[j+i].active = init->active[i];
                                        data->layers[j+i].type = i;
                                        data->layers[j+i].offset = offset;      
                                        strcpy(data->layers[j+i].name, &(init->nametemplate[j+i]));
index f85161c3e23267462b4c039b7a7e6ac3e2fb39f4..f9bb14a08c619a80d2d4668b8ef40140f45361f3 100644 (file)
@@ -4480,11 +4480,6 @@ static void bevel_mesh_recurs(float bsize, short recurs, int allfaces)
 }
 
 void bevel_menu() {
-       int vlayers[BME_CD_NUMTYPES] = {0,0,0,0};
-       int elayers[BME_CD_NUMTYPES] = {0,0,0,0};
-       int llayers[BME_CD_NUMTYPES] = {0,0,0,0};
-       int players[BME_CD_NUMTYPES] = {0,0,0,0};
-
        BME_Mesh *bm;
        BME_TransData_Head *td;
        TransInfo *t;