Another purge of compiler warnings (some of which I've been getting for a while) as a warmup exercise.

This commit is contained in:
2007-09-18 06:33:24 +00:00
parent a87b2ff22b
commit d86a03113d
4 changed files with 7 additions and 6 deletions

View File

@@ -1686,7 +1686,9 @@ void build_particle_system(Object *ob)
float *volengths= NULL, *folengths= NULL;
int deform=0, a, totpart, paf_sta, paf_end;
int waitcursor_set= 0, totvert, totface, curface, curvert;
#ifndef DISABLE_ELBEEM
int readMask, activeParts, fileParts;
#endif
/* return conditions */
if(ob->type!=OB_MESH) return;

View File

@@ -53,6 +53,7 @@
#include <unistd.h>
#endif
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>

View File

@@ -6507,7 +6507,7 @@ void mesh_rotate_uvs(void)
{
EditMesh *em = G.editMesh;
EditFace *efa;
short change;
short change = 0;
MTFace *tf;
float u1, v1;
@@ -6553,7 +6553,7 @@ void mesh_mirror_uvs(void)
{
EditMesh *em = G.editMesh;
EditFace *efa;
short change;
short change = 0;
MTFace *tf;
float u1, v1;
@@ -6603,7 +6603,7 @@ void mesh_rotate_colors(void)
{
EditMesh *em = G.editMesh;
EditFace *efa;
short change;
short change = 0;
MCol tmpcol, *mcol;
if (!EM_vertColorCheck()) {
error("mesh has no color layers");
@@ -6638,7 +6638,7 @@ void mesh_mirror_colors(void)
{
EditMesh *em = G.editMesh;
EditFace *efa;
short change;
short change = 0;
MCol tmpcol, *mcol;
if (!EM_vertColorCheck()) {
error("mesh has no color layers");

View File

@@ -2771,8 +2771,6 @@ static void p_chart_lscm_begin(PChart *chart, PBool live, PBool abf)
#endif
if (abf) {
PBool p_chart_abf_solve(PChart *chart);
if (!p_chart_abf_solve(chart))
param_warning("ABF solving failed: falling back to LSCM.\n");
}