* tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
with the same guard as that used to protect usage of the null_ptr
function, so that one doesn't get a -Wunused warning
about the function being defined but unused.
* tests/test-canonicalize-lgpl.c: Likewise.
+2020-02-04 Pádraig Brady <P@draigBrady.com>
+
+ test-canonicalize: avoid unused function warning
+ * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
+ with the same guard as that used to protect usage of the null_ptr
+ function, so that one doesn't get a -Wunused warning.
+ * tests/test-canonicalize-lgpl.c: Likewise.
+
2020-02-03 Paul Eggert <eggert@cs.ucla.edu>
libc-config: port to Apple’s Clang variant
#include "same-inode.h"
#include "ignore-value.h"
-#include "null-ptr.h"
+#if GNULIB_defined_canonicalize_file_name
+# include "null-ptr.h"
+#endif
+
#include "macros.h"
#define BASE "t-can-lgpl.tmp"
#include "same-inode.h"
#include "ignore-value.h"
-#include "null-ptr.h"
+#if GNULIB_defined_canonicalize_file_name
+# include "null-ptr.h"
+#endif
+
#include "macros.h"
#define BASE "t-can.tmp"