Skip to content

Commit 24ea452

Browse files
committed
Suppress warnings in external libraries.
1 parent 1a6e0d5 commit 24ea452

File tree

2 files changed

+32
-22
lines changed

2 files changed

+32
-22
lines changed

.arduino-ci.yml

+29-22
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,32 @@
1+
platforms:
2+
mega2560:
3+
gcc:
4+
warnings:
5+
- no-unknown-attributes
6+
- no-address-of-packed-member
7+
18
unittest:
2-
platforms:
3-
- mega2560
4-
libraries:
5-
- "Adafruit BusIO"
6-
- "Adafruit MAX31865"
7-
- "Arduino-PID-Library"
8-
- "Ethernet"
9-
- "LiquidCrystal"
10-
- "RTClib"
11-
- "Keypad"
12-
- "SD"
9+
platforms:
10+
- mega2560
11+
libraries:
12+
- "Adafruit BusIO"
13+
- "Adafruit MAX31865"
14+
- "Arduino-PID-Library"
15+
- "Ethernet"
16+
- "LiquidCrystal"
17+
- "RTClib"
18+
- "Keypad"
19+
- "SD"
1320

1421
compile:
15-
platforms:
16-
- mega2560
17-
libraries:
18-
- "Adafruit BusIO"
19-
- "Adafruit MAX31865"
20-
- "Arduino-PID-Library"
21-
- "Ethernet"
22-
- "LiquidCrystal"
23-
- "RTClib"
24-
- "Keypad"
25-
- "SD"
22+
platforms:
23+
- mega2560
24+
libraries:
25+
- "Adafruit BusIO"
26+
- "Adafruit MAX31865"
27+
- "Arduino-PID-Library"
28+
- "Ethernet"
29+
- "LiquidCrystal"
30+
- "RTClib"
31+
- "Keypad"
32+
- "SD"

GUI/Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
CC = g++ -std=c++17 -O3 -fPIC
22
DEFINES = -D__AVR__ -D__AVR_ATmega2560__ -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DARDUINO=100
3+
WARNINGS = -Wno-unknown-attributes -Wno-address-of-packed-member
34
LIBRARIES = $(shell bundle exec arduino_library_location.rb)
45
PY_PATH = $(shell cd ../pybind11; python3 -m pybind11 --includes)
56
SUFFIX = $(shell python3-config --extension-suffix)
@@ -13,6 +14,7 @@ $(PY_LIB) : TankControllerLib.o ../pybind11/setup.py ../libTC.cpp
1314
echo "===== Compiling PY_LIB ($(PY_LIB)) =====" > /dev/null
1415
$(CC) -shared -fPIC \
1516
$(DEFINES) \
17+
$(WARNINGS) \
1618
-Wl,-undefined,dynamic_lookup \
1719
$(PY_PATH) \
1820
-I$(TC_PATH) \
@@ -37,6 +39,7 @@ TankControllerLib.o : Godmode.o
3739
echo "===== Compiling TankControllerLib =====" > /dev/null
3840
$(CC) -c \
3941
$(DEFINES) \
42+
$(WARNINGS) \
4043
-I$(TC_PATH) \
4144
-I$(TC_PATH)/Devices \
4245
-I$(TC_PATH)/UIState \

0 commit comments

Comments
 (0)