summaryrefslogtreecommitdiffstats
path: root/array.h
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2010-06-06 00:27:08 +0000
committerTiago Cunha <tcunha@gmx.com>2010-06-06 00:27:08 +0000
commit31657820bc7613a933517b7ac97dee7958c979d5 (patch)
tree2cc71e6574bc92b829bceeca466e346f8f62459e /array.h
parentbe3643fba09b18c0a6b1fc88c93833aca7cc0345 (diff)
Sync OpenBSD patchset 714:
Shut up gcc4 warnings.
Diffstat (limited to 'array.h')
-rw-r--r--array.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/array.h b/array.h
index eb829f5f..3cdf7195 100644
--- a/array.h
+++ b/array.h
@@ -1,4 +1,4 @@
-/* $Id: array.h,v 1.10 2010-02-08 18:29:32 tcunha Exp $ */
+/* $Id: array.h,v 1.11 2010-06-06 00:27:08 tcunha Exp $ */
/*
* Copyright (c) 2006 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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)