about summary refs log tree commit diff
path: root/io/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'io/Makefile')
-rw-r--r--io/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/io/Makefile b/io/Makefile
index f4956841ae..24ead888b2 100644
--- a/io/Makefile
+++ b/io/Makefile
@@ -63,7 +63,6 @@ distribute	:= ftwtest-sh
 
 include ../Rules
 
-CFLAGS-fts.c = -Wno-uninitialized
 CFLAGS-fcntl.c = -fexceptions -fasynchronous-unwind-tables
 CFLAGS-poll.c = -fexceptions -fasynchronous-unwind-tables
 CFLAGS-lockf.c = -fexceptions
@@ -71,9 +70,9 @@ CFLAGS-statfs.c = -fexceptions
 CFLAGS-fstatfs.c = -fexceptions
 CFLAGS-statvfs.c = -fexceptions
 CFLAGS-fstatvfs.c = -fexceptions
-CFLAGS-fts.c = -fexceptions
-CFLAGS-ftw.c = -fexceptions
-CFLAGS-ftw64.c = -fexceptions
+CFLAGS-fts.c = -Wno-uninitialized $(uses-callbacks) -fexceptions
+CFLAGS-ftw.c = $(uses-callbacks) -fexceptions
+CFLAGS-ftw64.c = $(uses-callbacks) -fexceptions
 CFLAGS-lockf.c = -fexceptions
 CFLAGS-posix_fallocate.c = -fexceptions
 CFLAGS-posix_fallocate64.c = -fexceptions