From d030b744853777162c907b7af29fb302802d7949 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 16 Nov 2007 23:17:07 +0000 Subject: [PATCH] make gcc think switch_mprintf is printf like. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6315 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/include/switch_core_db.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/switch_core_db.h b/src/include/switch_core_db.h index ab5903b24a..0079dea569 100644 --- a/src/include/switch_core_db.h +++ b/src/include/switch_core_db.h @@ -539,7 +539,7 @@ SWITCH_DECLARE(int) switch_core_db_changes(switch_core_db_t *db); * should always use %q instead of %s when inserting text into a string * literal. */ -SWITCH_DECLARE(char *) switch_mprintf(const char *zFormat, ...); +SWITCH_DECLARE(char *) switch_mprintf(const char *zFormat, ...) PRINTF_FUNCTION(1, 2); SWITCH_END_EXTERN_C #endif