Skip to content

Commit bac2839

Browse files
committed
add -Werror=return-type for all warning options
1 parent a8c4b4d commit bac2839

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

platform.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ version=1.7.5
2525
# Compile variables
2626
# -----------------
2727

28-
compiler.warning_flags=-w
29-
compiler.warning_flags.none=-w
30-
compiler.warning_flags.default=
31-
compiler.warning_flags.more=-Wall -Wno-expansion-to-defined
32-
compiler.warning_flags.all=-Wall -Wextra -Wno-expansion-to-defined
28+
compiler.warning_flags=-Werror=return-type
29+
compiler.warning_flags.none=-Werror=return-type
30+
compiler.warning_flags.default=-Werror=return-type
31+
compiler.warning_flags.more=-Wall -Werror=return-type -Wno-expansion-to-defined
32+
compiler.warning_flags.all=-Wall -Wextra -Werror=return-type -Wno-expansion-to-defined
3333

3434
compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
3535
compiler.c.cmd=arm-none-eabi-gcc

0 commit comments

Comments
 (0)