summaryrefslogtreecommitdiff
path: root/include/apr_strings.h
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2001-02-22 04:05:58 +0000
committerRyan Bloom <rbb@apache.org>2001-02-22 04:05:58 +0000
commit15d2626d7adb58981e965b06eb194fdc180bfd91 (patch)
tree0954be7bd8de4fb98a2a55f19ffc4f9f28ff0ad5 /include/apr_strings.h
parent7d1a69c084ef128e17dd381eec8d3b0b66bb4693 (diff)
downloadapr-15d2626d7adb58981e965b06eb194fdc180bfd91.tar.gz
Add a couple of GCC attribute tags to printf style functions. This also
fixes a couple of mismatched parameters highlighted revealed by the attribute. Submitted by: Jon Travis <jtravis@covalent.net> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61280 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_strings.h')
-rw-r--r--include/apr_strings.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/apr_strings.h b/include/apr_strings.h
index ecd1789de..85d070273 100644
--- a/include/apr_strings.h
+++ b/include/apr_strings.h
@@ -177,7 +177,8 @@ APR_DECLARE(char *) apr_pvsprintf(apr_pool_t *p, const char *fmt, va_list ap);
* @return The new string
* @deffunc char *apr_psprintf(apr_pool_t *p, const char *fmt, ...)
*/
-APR_DECLARE_NONSTD(char *) apr_psprintf(apr_pool_t *p, const char *fmt, ...);
+APR_DECLARE_NONSTD(char *) apr_psprintf(apr_pool_t *p, const char *fmt, ...)
+ __attribute__((format(printf,2,3)));
/**
* copy n characters from src to des>