Mercurial > dovecot > core-2.2
changeset 14631:634474af3957
Avoid a NULL warning in mysql_init() when HAVE_ATTR_NULL capable compiler is used.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 24 Jun 2012 18:58:19 +0300 |
parents | 5a9f9c35a8f0 |
children | 932ec9940568 |
files | src/lib-sql/driver-mysql.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-sql/driver-mysql.c Sun Jun 24 03:02:11 2012 +0300 +++ b/src/lib-sql/driver-mysql.c Sun Jun 24 18:58:19 2012 +0300 @@ -10,7 +10,16 @@ #include <stdlib.h> #include <unistd.h> #include <time.h> +#ifdef HAVE_ATTR_NULL +/* ugly way to tell clang that mysql.h is a system header and we don't want + to enable nonnull attributes for it by default.. */ +# 4 "driver-mysql.c" 3 +#endif #include <mysql.h> +#ifdef HAVE_ATTR_NULL +# 4 "driver-mysql.c" 3 +# line 20 +#endif #include <errmsg.h> struct mysql_db {