fs/proc: Add compiler check for -Wno-override-init to support gcc < 4.2
Changes
1 files changed · +1 −1
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| fs/proc/Makefile | modified | +1 | −1 | View file |
fs/proc/Makefile
View filediff --git a/fs/proc/Makefile b/fs/proc/Makefile
index a8c1360..12c6922 100644
--- a/fs/proc/Makefile
+++ b/fs/proc/Makefile
@@ -4,7 +4,7 @@
obj-y += proc.o
-CFLAGS_task_mmu.o += -Wno-override-init
+CFLAGS_task_mmu.o += $(call cc-option,-Wno-override-init,)
proc-y := nommu.o task_nommu.o
proc-$(CONFIG_MMU) := task_mmu.o