projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
035c732
)
(cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
author
Jim Meyering
<jim@meyering.net>
Thu, 19 May 2005 08:54:40 +0000
(08:54 +0000)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/lib/unlinkdir.h
b/lib/unlinkdir.h
index
f705f12
..
6582418
100644
(file)
--- 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