Cleanup: compiler warnings

This commit is contained in:
Brecht Van Lommel 2020-02-18 00:22:49 +01:00
parent 52a475287d
commit a450bf330c
2 changed files with 7 additions and 4 deletions

View file

@ -19,7 +19,7 @@
/* Wave */
float wave(point p,
float wave(point p_input,
string type,
string bands_direction,
string rings_direction,
@ -30,7 +30,7 @@ float wave(point p,
float phase)
{
/* Prevent precision issues on unit coordinates. */
p = (p + 0.000001) * 0.999999;
point p = (p_input + 0.000001) * 0.999999;
float n = 0.0;

View file

@ -688,8 +688,11 @@ void rna_Object_me_eval_info(
}
}
# else
void rna_Object_me_eval_info(
struct Object *ob, bContext *C, int type, PointerRNA *rnaptr_depsgraph, char *result)
void rna_Object_me_eval_info(struct Object *UNUSED(ob),
bContext *UNUSED(C),
int UNUSED(type),
PointerRNA *UNUSED(rnaptr_depsgraph),
char *result)
{
result[0] = '\0';
}