From 0271ad6322775de43f0c3f790f070b975861aa7d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 4 Dec 2010 11:44:56 +0000 Subject: Give functions that use printf style formatting GCC format attributes so if incorrect formatting is used the compiler will warn of this. found & fixed 2x incorrect formatting args. --- source/blender/makesrna/intern/rna_ID.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/makesrna/intern/rna_ID.c') diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c index bc803415c7c..63a2c5d41d4 100644 --- a/source/blender/makesrna/intern/rna_ID.c +++ b/source/blender/makesrna/intern/rna_ID.c @@ -224,7 +224,7 @@ StructRNA *rna_IDPropertyGroup_register(const bContext *C, ReportList *reports, * owns the string pointer which it could potentually free while blender * is running. */ if(strlen(identifier) >= sizeof(((IDProperty *)NULL)->name)) { - BKE_reportf(reports, RPT_ERROR, "registering id property class: '%s' is too long, maximum length is %d.", identifier, sizeof(((IDProperty *)NULL)->name)); + BKE_reportf(reports, RPT_ERROR, "registering id property class: '%s' is too long, maximum length is %d.", identifier, (int)sizeof(((IDProperty *)NULL)->name)); return NULL; } -- cgit v1.2.3