summaryrefslogtreecommitdiffstats
path: root/array.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-06-05 16:32:22 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-06-05 16:32:22 +0000
commit0440d325d9dcef2170f2b7695d06d0ba10e9875d (patch)
tree549de95546dfb60b6e4d4be168a7d5e184b9f8a6 /array.h
parent36c0871c2380165fc018ec085f8c8352deffa6f3 (diff)
Shut up gcc4 warnings.
Diffstat (limited to 'array.h')
-rw-r--r--array.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.h b/array.h
index 543c3dfe..59ac356f 100644
--- a/array.h
+++ b/array.h
@@ -47,7 +47,7 @@
} \
} while (0)
-#define ARRAY_EMPTY(a) ((a) == NULL || (a)->num == 0)
+#define ARRAY_EMPTY(a) (((void *) (a)) == NULL || (a)->num == 0)
#define ARRAY_LENGTH(a) ((a)->num)
#define ARRAY_DATA(a) ((a)->list)