From bac2839448146db921a5c5558cd6e1633eda02f1 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 6 Jan 2022 18:20:59 +0700 Subject: [PATCH] add -Werror=return-type for all warning options --- platform.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/platform.txt b/platform.txt index beadb1c74..c59f61c48 100644 --- a/platform.txt +++ b/platform.txt @@ -25,11 +25,11 @@ version=1.7.5 # Compile variables # ----------------- -compiler.warning_flags=-w -compiler.warning_flags.none=-w -compiler.warning_flags.default= -compiler.warning_flags.more=-Wall -Wno-expansion-to-defined -compiler.warning_flags.all=-Wall -Wextra -Wno-expansion-to-defined +compiler.warning_flags=-Werror=return-type +compiler.warning_flags.none=-Werror=return-type +compiler.warning_flags.default=-Werror=return-type +compiler.warning_flags.more=-Wall -Werror=return-type -Wno-expansion-to-defined +compiler.warning_flags.all=-Wall -Wextra -Werror=return-type -Wno-expansion-to-defined compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/ compiler.c.cmd=arm-none-eabi-gcc