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/blenlib/BLI_dynstr.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/blender/blenlib/BLI_dynstr.h') diff --git a/source/blender/blenlib/BLI_dynstr.h b/source/blender/blenlib/BLI_dynstr.h index c5158264e72..34e77007d95 100644 --- a/source/blender/blenlib/BLI_dynstr.h +++ b/source/blender/blenlib/BLI_dynstr.h @@ -75,7 +75,11 @@ void BLI_dynstr_nappend (DynStr *ds, const char *cstr, int len); * @param ds The DynStr to append to. * @param format The printf format string to use. */ -void BLI_dynstr_appendf (DynStr *ds, const char *format, ...); +void BLI_dynstr_appendf (DynStr *ds, const char *format, ...) +#ifdef __GNUC__ +__attribute__ ((format (printf, 2, 3))); +#endif +; void BLI_dynstr_vappendf (DynStr *ds, const char *format, va_list args); /** -- cgit v1.2.3