fchdir: avoid compiler warning
authorEric Blake <ebb9@byu.net>
Sat, 3 Oct 2009 04:32:45 +0000 (22:32 -0600)
committerEric Blake <ebb9@byu.net>
Sat, 3 Oct 2009 04:48:23 +0000 (22:48 -0600)
Using fchdir without canonicalize-lgpl gave a warning.

* lib/fchdir.c (canonicalize_file_name)
[!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/fchdir.c

index 547a2a7..8bcb8b1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-10-02  Eric Blake  <ebb9@byu.net>
 
+       fchdir: avoid compiler warning
+       * lib/fchdir.c (canonicalize_file_name)
+       [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
+
        test-open: support mingw errno values
        * tests/test-open.h (test_open): Relax test.
        * tests/test-fopen.h (test_fopen): Likewise.
index b7ce188..19f02c3 100644 (file)
@@ -38,6 +38,7 @@
 #  define HAVE_CANONICALIZE_FILE_NAME 1
 # else
 #  define HAVE_CANONICALIZE_FILE_NAME 0
+#  define canonicalize_file_name(name) NULL
 # endif
 #endif