Skip to content

Commit

Permalink
Only use -Werror in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
qsantos committed Jul 17, 2024
1 parent 7b672c1 commit 325eb0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
- name: Run cppcheck
run: cppcheck --enable=all --inline-suppr --suppress=missingIncludeSystem --force *.c
- name: Build
run: make
run: CFLAGS=-Werror make
- name: Test
run: test "$(./qrcode -n -e 'Hello, World!' | ./qrcode -d)" = 'Hello, World!'
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CC := gcc
CFLAGS := -Wall -Wextra -Werror -Wpedantic -std=c99 -O3
LDFLAGS := -O3
CFLAGS += -Wall -Wextra -Wpedantic -std=c99 -O3
LDFLAGS += -O3

qrcode: main.o pbm.o encoder.o decoder.o rs.o bch.o blocks.o modules.o data.o

Expand Down

0 comments on commit 325eb0a

Please sign in to comment.