+2008-09-15 Simon Josefsson <simon@josefsson.org>
+
+ tests: avoid some compiler warnings
+ * tests/test-memchr.c (main): Pass NULL indirectly.
+ * tests/test-getdate.c (main): Remove unused variable 'ret'.
+
2008-09-29 Ondřej Vašík <ovasik@redhat.com>
getdate.y: disallow countable dayshifts like "4 yesterday ago"
int
main ()
{
+ void *nil = NULL; /* Use to avoid gcc attribute((nonnull)) warnings. */
+
size_t n = 0x100000;
char *input = malloc (n);
ASSERT (input);
ASSERT (MEMRCHR (input, 'a', n) == input + n - 1);
ASSERT (MEMRCHR (input, 'a', 0) == NULL);
- ASSERT (MEMRCHR (NULL, 'a', 0) == NULL);
+ ASSERT (MEMRCHR (nil, 'a', 0) == NULL);
ASSERT (MEMRCHR (input, 'b', n) == input + n - 2);
ASSERT (MEMRCHR (input, 'c', n) == input + n - 3);