]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
make gcc think switch_mprintf is printf like.
authorMichael Jerris <mike@jerris.com>
Fri, 16 Nov 2007 23:17:07 +0000 (23:17 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 16 Nov 2007 23:17:07 +0000 (23:17 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6315 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_core_db.h

index ab5903b24a3868ad0cbe750647d5e1ff465b4dbe..0079dea5696870601ec0744725e8f8fb7a309178 100644 (file)
@@ -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