From 4f7402eee9f163ed2878509dc515651ec940e7ff Mon Sep 17 00:00:00 2001 From: DrZiplok Date: Tue, 3 May 2011 05:04:27 +0000 Subject: [PATCH] Suppress warnings from the Arduino core, since we can't do anything about them. git-svn-id: https://arducopter.googlecode.com/svn/trunk@2076 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/AP_Common/Arduino.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Common/Arduino.mk b/libraries/AP_Common/Arduino.mk index 148889e4c5..9a22d83da1 100644 --- a/libraries/AP_Common/Arduino.mk +++ b/libraries/AP_Common/Arduino.mk @@ -411,11 +411,11 @@ $(BUILDROOT)/libraries/%.o: $(ARDUINO)/libraries/%.S # $(BUILDROOT)/$(HARDWARE)/%.o: $(CORESRC_DIR)/%.cpp $(RULEHDR) - $(v)$(CXX) $(CXXFLAGS) -c -o $@ $< -I$(CORESRC_DIR) + $(v)$(CXX) $(filter-out -W%,$(CXXFLAGS)) -c -o $@ $< -I$(CORESRC_DIR) $(BUILDROOT)/$(HARDWARE)/%.o: $(CORESRC_DIR)/%.c @mkdir -p $(dir $@) - $(v)$(CC) $(CFLAGS) -c -o $@ $< -I$(CORESRC_DIR) + $(v)$(CC) $(filter-out -W%,$(CFLAGS)) -c -o $@ $< -I$(CORESRC_DIR) $(BUILDROOT)/$(HARDWARE)/%.o: $(CORESRC_DIR)/%.S $(RULEHDR)