(cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
authorJim Meyering <jim@meyering.net>
Thu, 19 May 2005 08:54:40 +0000 (08:54 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 19 May 2005 08:54:40 +0000 (08:54 +0000)
Use #define rather than a static function, to avoid a warning
when the function was not used.

lib/unlinkdir.h

index f705f12..6582418 100644 (file)
@@ -21,7 +21,7 @@
 #include <stdbool.h>
 
 #if UNLINK_CANNOT_UNLINK_DIR
-static bool cannot_unlink_dir (void) { return true; }
+# define cannot_unlink_dir() true
 #else
 bool cannot_unlink_dir (void);
 #endif