Skip to content

Suppress warnings for included libraries #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 38 additions & 22 deletions .arduino-ci.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,41 @@
platforms:
mega2560:
board: arduino:avr:mega:cpu=atmega2560
package: arduino:avr
gcc:
features:
defines:
- __AVR__
- __AVR_ATmega2560__
- ARDUINO_ARCH_AVR
- ARDUINO_AVR_MEGA2560
warnings:
- no-unknown-attributes
- no-address-of-packed-member
flags:

unittest:
platforms:
- mega2560
libraries:
- "Adafruit BusIO"
- "Adafruit MAX31865"
- "Arduino-PID-Library"
- "Ethernet"
- "LiquidCrystal"
- "RTClib"
- "Keypad"
- "SD"
platforms:
- mega2560
libraries:
- "Adafruit BusIO"
- "Adafruit MAX31865"
- "Arduino-PID-Library"
- "Ethernet"
- "LiquidCrystal"
- "RTClib"
- "Keypad"
- "SD"

compile:
platforms:
- mega2560
libraries:
- "Adafruit BusIO"
- "Adafruit MAX31865"
- "Arduino-PID-Library"
- "Ethernet"
- "LiquidCrystal"
- "RTClib"
- "Keypad"
- "SD"
platforms:
- mega2560
libraries:
- "Adafruit BusIO"
- "Adafruit MAX31865"
- "Arduino-PID-Library"
- "Ethernet"
- "LiquidCrystal"
- "RTClib"
- "Keypad"
- "SD"
1 change: 1 addition & 0 deletions .github/actions/spelling/excludes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ LICENSE
.all-contributorsrc
.gitignore
Makefile
.arduino-ci.yml
^other/*
^docs/Menus.xlsx$
1 change: 1 addition & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ EZO
FONTFAMILY
FONTSTYLE
FONTWEIGHT
gcc
Gemfile
github
globals
Expand Down
3 changes: 3 additions & 0 deletions GUI/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
CC = g++ -std=c++17 -O3 -fPIC
DEFINES = -D__AVR__ -D__AVR_ATmega2560__ -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DARDUINO=100
WARNINGS = -Wno-unknown-attributes -Wno-address-of-packed-member
LIBRARIES = $(shell bundle exec arduino_library_location.rb)
PY_PATH = $(shell cd ../pybind11; python3 -m pybind11 --includes)
SUFFIX = $(shell python3-config --extension-suffix)
Expand All @@ -13,6 +14,7 @@ $(PY_LIB) : TankControllerLib.o ../pybind11/setup.py ../libTC.cpp
echo "===== Compiling PY_LIB ($(PY_LIB)) =====" > /dev/null
$(CC) -shared -fPIC \
$(DEFINES) \
$(WARNINGS) \
-Wl,-undefined,dynamic_lookup \
$(PY_PATH) \
-I$(TC_PATH) \
Expand All @@ -37,6 +39,7 @@ TankControllerLib.o : Godmode.o
echo "===== Compiling TankControllerLib =====" > /dev/null
$(CC) -c \
$(DEFINES) \
$(WARNINGS) \
-I$(TC_PATH) \
-I$(TC_PATH)/Devices \
-I$(TC_PATH)/UIState \
Expand Down