summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-05-19 08:54:40 +0000
committerJim Meyering <jim@meyering.net>2005-05-19 08:54:40 +0000
commit276ae5c469352d5181a69873261919eede7ec99e (patch)
treec8d6a4db4d171c1a039201fe95753eaf24b6ccc4 /lib
parent035c732c59fe5f0cbec927c3b7aac34c60d2c873 (diff)
downloadcoreutils-276ae5c469352d5181a69873261919eede7ec99e.tar.xz
(cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
Use #define rather than a static function, to avoid a warning when the function was not used.
Diffstat (limited to 'lib')
-rw-r--r--lib/unlinkdir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unlinkdir.h b/lib/unlinkdir.h
index f705f1233..6582418bc 100644
--- a/lib/unlinkdir.h
+++ b/lib/unlinkdir.h
@@ -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