Skip to content

Commit bc8fdc9

Browse files
committed
Adjust compilation error/warning settings
* Add -Wextra to get extra compilation warnings * Enable -Woverflow and -Wtype-limits in error mode, to catch some errors regarding uint16 -> uint8 conversion.
1 parent 88320e3 commit bc8fdc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CFLAGS=-Wall -std=c11 -Os -I src/usb-iface -I src/lib
1+
CFLAGS=-Wall -Wextra -Werror=overflow -Werror=type-limits -std=c11 -Os -I src/usb-iface -I src/lib
22

33
# Optionally add <prog>.hex here so it is built when make is invoked
44
# without arguments.

0 commit comments

Comments
 (0)