+2008-05-22 Eric Blake <ebb9@byu.net>
+
+ Avoid gcc warning.
+ * tests/test-memcmp.c (main): Pass NULL indirectly.
+
2008-05-21 Bruno Haible <bruno@clisp.org>
Add reference doc about ACLs.
int
main (void)
{
+ void *nil = NULL; /* Use to avoid gcc attribute((nonnull)) warnings. */
+
/* Test equal / not equal distinction. */
- ASSERT (memcmp (NULL, NULL, 0) == 0);
+ ASSERT (memcmp (nil, nil, 0) == 0);
ASSERT (memcmp ("foo", "foobar", 2) == 0);
ASSERT (memcmp ("foo", "foobar", 3) == 0);
ASSERT (memcmp ("foo", "foobar", 4) != 0);