fix for some pedantic warnings.

This commit is contained in:
2010-12-03 01:52:28 +00:00
parent 9e5577db47
commit b45c3363fd
54 changed files with 788 additions and 741 deletions

View File

@@ -2048,7 +2048,7 @@ static int animdata_filter_dopesheet (bAnimContext *ac, ListBase *anim_data, bDo
if ((ads->source == NULL) || (GS(ads->source->name)!=ID_SCE)) {
printf("DopeSheet Error: Not scene!\n");
if (G.f & G_DEBUG)
printf("\tPointer = %p, Name = '%s' \n", ads->source, (ads->source)?ads->source->name:NULL);
printf("\tPointer = %p, Name = '%s' \n", (void *)ads->source, (ads->source)?ads->source->name:NULL);
return 0;
}

View File

@@ -1401,7 +1401,7 @@ static int insert_key_button_exec (bContext *C, wmOperator *op)
}
}
else if (G.f & G_DEBUG) {
printf("ptr.data = %p, prop = %p,", ptr.data, prop);
printf("ptr.data = %p, prop = %p,", (void *)ptr.data, (void *)prop);
if(prop)
printf("animateable = %d \n", RNA_property_animateable(&ptr, prop));
else
@@ -1476,7 +1476,7 @@ static int delete_key_button_exec (bContext *C, wmOperator *op)
printf("Button Delete-Key: no path to property \n");
}
else if (G.f & G_DEBUG) {
printf("ptr.data = %p, prop = %p \n", ptr.data, prop);
printf("ptr.data = %p, prop = %p \n", (void *)ptr.data, (void *)prop);
}