mirror of
https://https.git.savannah.gnu.org/git/coreutils.git
synced 2026-01-27 01:44:21 +00:00
(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:
parent
035c732c59
commit
276ae5c469
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user