dovecot-2.2-pigeonhole: Some ATTR_FORMAT additions by Timo.
pigeonhole at rename-it.nl
pigeonhole at rename-it.nl
Tue Jun 17 22:08:54 UTC 2014
details: http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/b56520e04882
changeset: 1880:b56520e04882
user: Stephan Bosch <stephan at rename-it.nl>
date: Wed Jun 18 00:08:03 2014 +0200
description:
Some ATTR_FORMAT additions by Timo.
diffstat:
src/lib-sieve/sieve-error-private.h | 24 ++++++++++++------------
src/lib-sieve/sieve-error.h | 32 ++++++++++++++++----------------
2 files changed, 28 insertions(+), 28 deletions(-)
diffs (163 lines):
diff -r 60e5e65ffb01 -r b56520e04882 src/lib-sieve/sieve-error-private.h
--- a/src/lib-sieve/sieve-error-private.h Tue Jun 17 23:43:10 2014 +0200
+++ b/src/lib-sieve/sieve-error-private.h Wed Jun 18 00:08:03 2014 +0200
@@ -47,16 +47,16 @@
void (*verror)
(struct sieve_error_handler *ehandler, unsigned int flags,
- const char *location, const char *fmt, va_list args);
+ const char *location, const char *fmt, va_list args) ATTR_FORMAT(4, 0);
void (*vwarning)
(struct sieve_error_handler *ehandler, unsigned int flags,
- const char *location, const char *fmt, va_list args);
+ const char *location, const char *fmt, va_list args) ATTR_FORMAT(4, 0);;
void (*vinfo)
(struct sieve_error_handler *ehandler, unsigned int flags,
- const char *location, const char *fmt, va_list args);
+ const char *location, const char *fmt, va_list args) ATTR_FORMAT(4, 0);;
void (*vdebug)
(struct sieve_error_handler *ehandler, unsigned int flags,
- const char *location, const char *fmt, va_list args);
+ const char *location, const char *fmt, va_list args) ATTR_FORMAT(4, 0);;
void (*free)
(struct sieve_error_handler *ehandler);
@@ -76,18 +76,18 @@
void sieve_direct_verror
(struct sieve_instance *svinst, struct sieve_error_handler *ehandler,
- unsigned int flags, const char *location, const char *fmt, va_list args);
+ unsigned int flags, const char *location, const char *fmt, va_list args) ATTR_FORMAT(5, 0);
void sieve_direct_vwarning
(struct sieve_instance *svinst, struct sieve_error_handler *ehandler,
- unsigned int flags, const char *location, const char *fmt, va_list args);
+ unsigned int flags, const char *location, const char *fmt, va_list args) ATTR_FORMAT(5, 0);
void sieve_direct_vinfo
(struct sieve_instance *svinst, struct sieve_error_handler *ehandler,
- unsigned int flags, const char *location, const char *fmt, va_list args);
+ unsigned int flags, const char *location, const char *fmt, va_list args) ATTR_FORMAT(5, 0);
void sieve_direct_vdebug
(struct sieve_instance *svinst, struct sieve_error_handler *ehandler,
- unsigned int flags, const char *location, const char *fmt, va_list args);
+ unsigned int flags, const char *location, const char *fmt, va_list args) ATTR_FORMAT(5, 0);
-static inline void sieve_direct_error
+static inline void ATTR_FORMAT(5, 6) sieve_direct_error
(struct sieve_instance *svinst, struct sieve_error_handler *ehandler,
unsigned int flags, const char *location, const char *fmt, ...)
{
@@ -99,7 +99,7 @@
va_end(args);
}
-static inline void sieve_direct_warning
+static inline void ATTR_FORMAT(5, 6) sieve_direct_warning
(struct sieve_instance *svinst, struct sieve_error_handler *ehandler,
unsigned int flags, const char *location, const char *fmt, ...)
{
@@ -111,7 +111,7 @@
va_end(args);
}
-static inline void sieve_direct_info
+static inline void ATTR_FORMAT(5, 6) sieve_direct_info
(struct sieve_instance *svinst, struct sieve_error_handler *ehandler,
unsigned int flags, const char *location, const char *fmt, ...)
{
@@ -123,7 +123,7 @@
va_end(args);
}
-static inline void sieve_direct_debug
+static inline void ATTR_FORMAT(5, 6) sieve_direct_debug
(struct sieve_instance *svinst, struct sieve_error_handler *ehandler,
unsigned int flags, const char *location, const char *fmt, ...)
{
diff -r 60e5e65ffb01 -r b56520e04882 src/lib-sieve/sieve-error.h
--- a/src/lib-sieve/sieve-error.h Tue Jun 17 23:43:10 2014 +0200
+++ b/src/lib-sieve/sieve-error.h Wed Jun 18 00:08:03 2014 +0200
@@ -25,13 +25,13 @@
typedef void (*sieve_error_vfunc_t)
(struct sieve_error_handler *ehandler, const char *location,
- const char *fmt, va_list args);
+ const char *fmt, va_list args) ATTR_FORMAT(3, 0);;
typedef void (*sieve_error_func_t)
(struct sieve_error_handler *ehandler, const char *location,
const char *fmt, ...) ATTR_FORMAT(3, 4);
typedef void (*sieve_sys_error_vfunc_t)
- (struct sieve_instance *svinst, const char *fmt, va_list args);
+ (struct sieve_instance *svinst, const char *fmt, va_list args) ATTR_FORMAT(2, 0);;
typedef void (*sieve_sys_error_func_t)
(struct sieve_instance *svinst, const char *fmt, ...) ATTR_FORMAT(2, 3);
@@ -40,13 +40,13 @@
*/
void sieve_sys_verror
- (struct sieve_instance *svinst, const char *fmt, va_list args);
+ (struct sieve_instance *svinst, const char *fmt, va_list args) ATTR_FORMAT(2, 0);;
void sieve_sys_vwarning
- (struct sieve_instance *svinst, const char *fmt, va_list args);
+ (struct sieve_instance *svinst, const char *fmt, va_list args) ATTR_FORMAT(2, 0);;
void sieve_sys_vinfo
- (struct sieve_instance *svinst, const char *fmt, va_list args);
+ (struct sieve_instance *svinst, const char *fmt, va_list args) ATTR_FORMAT(2, 0);;
void sieve_sys_vdebug
- (struct sieve_instance *svinst, const char *fmt, va_list args);
+ (struct sieve_instance *svinst, const char *fmt, va_list args) ATTR_FORMAT(2, 0);;
void sieve_sys_error
(struct sieve_instance *svinst, const char *fmt, ...) ATTR_FORMAT(2, 3);
@@ -68,19 +68,19 @@
void sieve_global_verror
(struct sieve_instance *svinst, struct sieve_error_handler *ehandler,
- const char *location, const char *fmt, va_list args);
+ const char *location, const char *fmt, va_list args) ATTR_FORMAT(4, 0);
void sieve_global_vwarning
(struct sieve_instance *svinst, struct sieve_error_handler *ehandler,
- const char *location, const char *fmt, va_list args);
+ const char *location, const char *fmt, va_list args) ATTR_FORMAT(4, 0);
void sieve_global_vinfo
(struct sieve_instance *svinst, struct sieve_error_handler *ehandler,
- const char *location, const char *fmt, va_list args);
+ const char *location, const char *fmt, va_list args) ATTR_FORMAT(4, 0);
void sieve_global_info_verror
(struct sieve_instance *svinst, struct sieve_error_handler *ehandler,
- const char *location, const char *fmt, va_list args);
+ const char *location, const char *fmt, va_list args) ATTR_FORMAT(4, 0);
void sieve_global_info_vwarning
(struct sieve_instance *svinst, struct sieve_error_handler *ehandler,
- const char *location, const char *fmt, va_list args);
+ const char *location, const char *fmt, va_list args) ATTR_FORMAT(4, 0);
void sieve_global_error
(struct sieve_instance *svinst, struct sieve_error_handler *ehandler,
@@ -111,20 +111,20 @@
void sieve_verror
(struct sieve_error_handler *ehandler, const char *location,
- const char *fmt, va_list args);
+ const char *fmt, va_list args) ATTR_FORMAT(3, 0);
void sieve_vwarning
(struct sieve_error_handler *ehandler, const char *location,
- const char *fmt, va_list args);
+ const char *fmt, va_list args) ATTR_FORMAT(3, 0);
void sieve_vinfo
(struct sieve_error_handler *ehandler, const char *location,
- const char *fmt, va_list args);
+ const char *fmt, va_list args) ATTR_FORMAT(3, 0);
void sieve_vdebug
(struct sieve_error_handler *ehandler, const char *location,
- const char *fmt, va_list args);
+ const char *fmt, va_list args) ATTR_FORMAT(3, 0);
void sieve_vcritical
(struct sieve_instance *svinst, struct sieve_error_handler *ehandler,
const char *location, const char *user_prefix, const char *fmt,
- va_list args);
+ va_list args) ATTR_FORMAT(5, 0);
void sieve_error
(struct sieve_error_handler *ehandler, const char *location,
More information about the dovecot-cvs
mailing list