dovecot-2.2: lib: quell sparse "warning: Using plain integer as ...
dovecot at dovecot.org
dovecot at dovecot.org
Mon May 5 12:30:01 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/ef701c458b25
changeset: 17317:ef701c458b25
user: Phil Carmody <phil at dovecot.fi>
date: Mon May 05 15:09:27 2014 +0300
description:
lib: quell sparse "warning: Using plain integer as NULL pointer"
The first element of the structure is a pointer, make that explicit.
diffstat:
src/lib/array-decl.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 88a8e7d9f2e9 -r ef701c458b25 src/lib/array-decl.h
--- a/src/lib/array-decl.h Mon May 05 14:57:13 2014 +0300
+++ b/src/lib/array-decl.h Mon May 05 15:09:27 2014 +0300
@@ -2,7 +2,7 @@
#define ARRAY_DECL_H
#define ARRAY(array_type) union { struct array arr; array_type const *const *v; array_type **v_modifiable; }
-#define ARRAY_INIT { { 0, 0 } }
+#define ARRAY_INIT { { NULL, 0 } }
#define ARRAY_DEFINE_TYPE(name, array_type) \
union array ## __ ## name { struct array arr; array_type const *const *v; array_type **v_modifiable; }
More information about the dovecot-cvs
mailing list