(cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:

Use #define rather than a static function, to avoid a warning
when the function was not used.
This commit is contained in:
Jim Meyering 2005-05-19 08:54:40 +00:00
parent 035c732c59
commit 276ae5c469

View 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