Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Smith <brian@briansmith.org>2016-01-17 23:14:08 +0300
committerDavid Benjamin <davidben@google.com>2016-01-21 23:59:18 +0300
commit8d3c43e4b1fc6fdc0562fe15aae4447554f65887 (patch)
treefe1ddc0accfca0c6f41466d31943e09afd2180aa /include/openssl/err.h
parent061332f21643a910941c32cbfc40e577c380e342 (diff)
Annotate |ERR_add_error_dataf| as |OPENSSL_PRINTF_FORMAT_FUNC|.
Besides being a good idea anyway, this avoids clang warning about using a non-literal format string when |ERR_add_error_dataf| calls |BIO_vsnprintf|. Change-Id: Iebc84d9c9d85e08e93010267d473387b661717a5 Reviewed-on: https://boringssl-review.googlesource.com/6920 Reviewed-by: David Benjamin <davidben@google.com>
Diffstat (limited to 'include/openssl/err.h')
-rw-r--r--include/openssl/err.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/openssl/err.h b/include/openssl/err.h
index 40361d79..7b3c306e 100644
--- a/include/openssl/err.h
+++ b/include/openssl/err.h
@@ -317,7 +317,8 @@ OPENSSL_EXPORT void ERR_add_error_data(unsigned count, ...);
/* ERR_add_error_dataf takes a printf-style format and arguments, and sets the
* result as the data on the most recent error. */
-OPENSSL_EXPORT void ERR_add_error_dataf(const char *format, ...);
+OPENSSL_EXPORT void ERR_add_error_dataf(const char *format, ...)
+ OPENSSL_PRINTF_FORMAT_FUNC(1, 2);
/* ERR_set_mark "marks" the most recent error for use with |ERR_pop_to_mark|.
* It returns one if an error was marked and zero if there are no errors. */