Created
January 19, 2012 19:57
-
-
Save goodell/1642201 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 942e0dca5ecb475299aea1b945b7ff2905a5fadc | |
Author: Dave Goodell <[email protected]> | |
Date: Wed Jan 18 17:47:23 2012 -0600 | |
our home-grown MPL_snprintf should also use VA_ARGS compiler checking | |
No reviewer. | |
--- | |
src/mpl/include/mplstr.h | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) | |
diff --git a/src/mpl/include/mplstr.h b/src/mpl/include/mplstr.h | |
index 7b83d6c..0ce17d6 100644 | |
--- a/src/mpl/include/mplstr.h | |
+++ b/src/mpl/include/mplstr.h | |
@@ -22,7 +22,7 @@ extern int snprintf(char *, size_t, const char *, ...) ATTRIBUTE((format(printf, | |
#if defined MPL_HAVE_SNPRINTF | |
#define MPL_snprintf snprintf | |
#else | |
-int MPL_snprintf(char *, size_t, const char *, ...); | |
+int MPL_snprintf(char *, size_t, const char *, ...) ATTRIBUTE((format(printf,3,4))); | |
#endif /* MPL_HAVE_SNPRINTF */ | |
#if defined MPL_NEEDS_STRDUP_DECL && !defined strdup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment