From 03d6d8198e94fe21bef33378045fd57605225fec Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 13 Nov 2020 09:24:35 +0100 Subject: [PATCH] add compiler flag -Wreturn-type to get a warning for "unclear" returns --- platformio.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/platformio.ini b/platformio.ini index bc0605428..4d9951948 100644 --- a/platformio.ini +++ b/platformio.ini @@ -105,6 +105,7 @@ build_unflags = -mtarget-align -Wdeprecated-declarations build_flags = -mno-target-align -Wno-deprecated-declarations + -Wreturn-type -D_IR_ENABLE_DEFAULT_=false -DDECODE_HASH=true -DDECODE_NEC=true -DSEND_NEC=true -DDECODE_RC5=true -DSEND_RC5=true -DDECODE_RC6=true -DSEND_RC6=true