most unused arg warnings corrected.
- removed deprecated bitmap arg from IMB_allocImBuf (plugins will need updating). - mostly tagged UNUSED() since some of these functions look like they may need to have the arguments used later.
This commit is contained in:
@@ -2022,7 +2022,7 @@ static void rekey_particle_to_time(Scene *scene, Object *ob, int pa_index, float
|
||||
|
||||
/************************* utilities **************************/
|
||||
|
||||
static int remove_tagged_particles(Scene *scene, Object *ob, ParticleSystem *psys, int mirror)
|
||||
static int remove_tagged_particles(Object *ob, ParticleSystem *psys, int mirror)
|
||||
{
|
||||
PTCacheEdit *edit = psys->edit;
|
||||
ParticleData *pa, *npa=0, *new_pars=0;
|
||||
@@ -2092,7 +2092,7 @@ static int remove_tagged_particles(Scene *scene, Object *ob, ParticleSystem *psy
|
||||
return removed;
|
||||
}
|
||||
|
||||
static void remove_tagged_keys(Scene *scene, Object *ob, ParticleSystem *psys)
|
||||
static void remove_tagged_keys(Object *ob, ParticleSystem *psys)
|
||||
{
|
||||
PTCacheEdit *edit= psys->edit;
|
||||
ParticleData *pa;
|
||||
@@ -2123,7 +2123,7 @@ static void remove_tagged_keys(Scene *scene, Object *ob, ParticleSystem *psys)
|
||||
if(new_totkey < 2)
|
||||
point->flag |= PEP_TAG;
|
||||
}
|
||||
remove_tagged_particles(scene, ob, psys, pe_x_mirror(ob));
|
||||
remove_tagged_particles(ob, psys, pe_x_mirror(ob));
|
||||
|
||||
LOOP_POINTS {
|
||||
pa = psys->particles + p;
|
||||
@@ -2347,7 +2347,7 @@ static int remove_doubles_exec(bContext *C, wmOperator *op)
|
||||
BLI_kdtree_free(tree);
|
||||
|
||||
/* remove tagged particles - don't do mirror here! */
|
||||
remove_tagged_particles(scene, ob, psys, 0);
|
||||
remove_tagged_particles(ob, psys, 0);
|
||||
totremoved += removed;
|
||||
} while(removed);
|
||||
|
||||
@@ -2430,7 +2430,7 @@ void PARTICLE_OT_weight_set(wmOperatorType *ot)
|
||||
|
||||
/************************ cursor drawing *******************************/
|
||||
|
||||
static void brush_drawcursor(bContext *C, int x, int y, void *customdata)
|
||||
static void brush_drawcursor(bContext *C, int x, int y, void *UNUSED(customdata))
|
||||
{
|
||||
ParticleEditSettings *pset= PE_settings(CTX_data_scene(C));
|
||||
ParticleBrushData *brush;
|
||||
@@ -2574,12 +2574,12 @@ static int delete_exec(bContext *C, wmOperator *op)
|
||||
|
||||
if(type == DEL_KEY) {
|
||||
foreach_selected_key(&data, set_delete_particle_key);
|
||||
remove_tagged_keys(data.scene, data.ob, data.edit->psys);
|
||||
remove_tagged_keys(data.ob, data.edit->psys);
|
||||
recalc_lengths(data.edit);
|
||||
}
|
||||
else if(type == DEL_PARTICLE) {
|
||||
foreach_selected_point(&data, set_delete_particle);
|
||||
remove_tagged_particles(data.scene, data.ob, data.edit->psys, pe_x_mirror(data.ob));
|
||||
remove_tagged_particles(data.ob, data.edit->psys, pe_x_mirror(data.ob));
|
||||
recalc_lengths(data.edit);
|
||||
}
|
||||
|
||||
@@ -2765,7 +2765,7 @@ void PARTICLE_OT_mirror(wmOperatorType *ot)
|
||||
|
||||
/************************* brush edit callbacks ********************/
|
||||
|
||||
static void brush_comb(PEData *data, float mat[][4], float imat[][4], int point_index, int key_index, PTCacheEditKey *key)
|
||||
static void brush_comb(PEData *data, float UNUSED(mat[][4]), float imat[][4], int point_index, int key_index, PTCacheEditKey *key)
|
||||
{
|
||||
ParticleEditSettings *pset= PE_settings(data->scene);
|
||||
float cvec[3], fac;
|
||||
@@ -3034,7 +3034,7 @@ static void brush_puff(PEData *data, int point_index)
|
||||
}
|
||||
|
||||
|
||||
static void brush_weight(PEData *data, float mat[][4], float imat[][4], int point_index, int key_index, PTCacheEditKey *key)
|
||||
static void brush_weight(PEData *data, float UNUSED(mat[][4]), float imat[][4], int point_index, int key_index, PTCacheEditKey *key)
|
||||
{
|
||||
/* roots have full weight allways */
|
||||
if(key_index) {
|
||||
@@ -3060,7 +3060,7 @@ static void brush_smooth_get(PEData *data, float mat[][4], float imat[][4], int
|
||||
}
|
||||
}
|
||||
|
||||
static void brush_smooth_do(PEData *data, float mat[][4], float imat[][4], int point_index, int key_index, PTCacheEditKey *key)
|
||||
static void brush_smooth_do(PEData *data, float UNUSED(mat[][4]), float imat[][4], int point_index, int key_index, PTCacheEditKey *key)
|
||||
{
|
||||
float vec[3], dvec[3];
|
||||
|
||||
@@ -3401,7 +3401,7 @@ static void brush_edit_apply(bContext *C, wmOperator *op, PointerRNA *itemptr)
|
||||
else
|
||||
foreach_point(&data, brush_cut);
|
||||
|
||||
removed= remove_tagged_particles(scene, ob, edit->psys, pe_x_mirror(ob));
|
||||
removed= remove_tagged_particles(ob, edit->psys, pe_x_mirror(ob));
|
||||
if(pset->flag & PE_KEEP_LENGTHS)
|
||||
recalc_lengths(edit);
|
||||
}
|
||||
@@ -3538,7 +3538,7 @@ static void brush_edit_apply(bContext *C, wmOperator *op, PointerRNA *itemptr)
|
||||
pset->flag |= lock_root;
|
||||
}
|
||||
|
||||
static void brush_edit_exit(bContext *C, wmOperator *op)
|
||||
static void brush_edit_exit(wmOperator *op)
|
||||
{
|
||||
BrushEdit *bedit= op->customdata;
|
||||
|
||||
@@ -3555,7 +3555,7 @@ static int brush_edit_exec(bContext *C, wmOperator *op)
|
||||
}
|
||||
RNA_END;
|
||||
|
||||
brush_edit_exit(C, op);
|
||||
brush_edit_exit(op);
|
||||
|
||||
return OPERATOR_FINISHED;
|
||||
}
|
||||
@@ -3597,7 +3597,7 @@ static int brush_edit_modal(bContext *C, wmOperator *op, wmEvent *event)
|
||||
case LEFTMOUSE:
|
||||
case MIDDLEMOUSE:
|
||||
case RIGHTMOUSE: // XXX hardcoded
|
||||
brush_edit_exit(C, op);
|
||||
brush_edit_exit(op);
|
||||
return OPERATOR_FINISHED;
|
||||
case MOUSEMOVE:
|
||||
brush_edit_apply_event(C, op, event);
|
||||
@@ -3607,9 +3607,9 @@ static int brush_edit_modal(bContext *C, wmOperator *op, wmEvent *event)
|
||||
return OPERATOR_RUNNING_MODAL;
|
||||
}
|
||||
|
||||
static int brush_edit_cancel(bContext *C, wmOperator *op)
|
||||
static int brush_edit_cancel(bContext *UNUSED(C), wmOperator *op)
|
||||
{
|
||||
brush_edit_exit(C, op);
|
||||
brush_edit_exit(op);
|
||||
|
||||
return OPERATOR_CANCELLED;
|
||||
}
|
||||
|
||||
@@ -720,7 +720,7 @@ static void fluidbake_free(void *customdata)
|
||||
}
|
||||
|
||||
/* called by fluidbake, only to check job 'stop' value */
|
||||
static int fluidbake_breakjob(void *customdata)
|
||||
static int fluidbake_breakjob(void *UNUSED(customdata))
|
||||
{
|
||||
//FluidBakeJob *fb= (FluidBakeJob *)customdata;
|
||||
//return *(fb->stop);
|
||||
@@ -1047,7 +1047,7 @@ int fluidsimBake(bContext *C, ReportList *reports, Object *fsDomain)
|
||||
return 1;
|
||||
}
|
||||
|
||||
void fluidsimFreeBake(Object *ob)
|
||||
void fluidsimFreeBake(Object *UNUSED(ob))
|
||||
{
|
||||
/* not implemented yet */
|
||||
}
|
||||
@@ -1056,27 +1056,27 @@ void fluidsimFreeBake(Object *ob)
|
||||
|
||||
/* compile dummy functions for disabled fluid sim */
|
||||
|
||||
FluidsimSettings *fluidsimSettingsNew(Object *srcob)
|
||||
FluidsimSettings *fluidsimSettingsNew(Object *UNUSED(srcob))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void fluidsimSettingsFree(FluidsimSettings *fss)
|
||||
void fluidsimSettingsFree(FluidsimSettings *UNUSED(fss))
|
||||
{
|
||||
}
|
||||
|
||||
FluidsimSettings* fluidsimSettingsCopy(FluidsimSettings *fss)
|
||||
FluidsimSettings* fluidsimSettingsCopy(FluidsimSettings *UNUSED(fss))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* only compile dummy functions */
|
||||
int fluidsimBake(bContext *C, ReportList *reports, Object *ob)
|
||||
int fluidsimBake(bContext *UNUSED(C), ReportList *UNUSED(reports), Object *UNUSED(ob))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void fluidsimFreeBake(Object *ob)
|
||||
void fluidsimFreeBake(Object *UNUSED(ob))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
#include "physics_intern.h"
|
||||
|
||||
static int cache_break_test(void *cbd) {
|
||||
static int cache_break_test(void *UNUSED(cbd)) {
|
||||
return G.afbreek==1;
|
||||
}
|
||||
static int ptcache_bake_all_poll(bContext *C)
|
||||
@@ -75,13 +75,13 @@ static int ptcache_poll(bContext *C)
|
||||
return (ptr.data && ptr.id.data);
|
||||
}
|
||||
|
||||
void bake_console_progress(void *arg, int nr)
|
||||
void bake_console_progress(void *UNUSED(arg), int nr)
|
||||
{
|
||||
printf("\rbake: %3i%%", nr);
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
void bake_console_progress_end(void *arg)
|
||||
void bake_console_progress_end(void *UNUSED(arg))
|
||||
{
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user