Skip to content

Commit

Permalink
CI: warnings as errors for safety
Browse files Browse the repository at this point in the history
  • Loading branch information
dzid26 committed Apr 9, 2024
1 parent 2e596ff commit 39ad0b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
run: |
cd src/controller
make clean
make
make CFLAGS=--Werror
- uses: actions/upload-artifact@v3
with:
name: firmware
Expand Down
6 changes: 3 additions & 3 deletions src/controller/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ ebike_app.h pins.h eeprom.h lights.h config.h
# The list of .rel files can be derived from the list of their source files
RELS = $(addprefix $(ODIR)/,$(notdir $(EXTRASRCS:.c=.rel)))

INCLUDES = -I$(IDIR) -I$(IDIR1)
CFLAGS = -m$(PLATFORM) -D$(DEVICE) -Ddouble=float --std-c99 --nolospre --opt-code-speed --peep-asm --peep-file peep.txt
DEBUG_FLAGS = --out-fmt-ihx --debug
override INCLUDES += -I$(IDIR) -I$(IDIR1)
override CFLAGS += -m$(PLATFORM) -D$(DEVICE) -Ddouble=float --std-c99 --nolospre --opt-code-speed --peep-asm --peep-file peep.txt
override DEBUG_FLAGS += --out-fmt-ihx --debug
LIBS =

# This just provides the conventional target name "all"; it is optional
Expand Down

0 comments on commit 39ad0b5

Please sign in to comment.