From 06c5c028046adc0a5501f6ac51953640e2015020 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Wed, 5 Apr 2023 14:59:09 +1000 Subject: Disable specific warnings to mitigate compilation problems with `KEEP_INTERMEDIATES=yes`. (#20339) --- platforms/chibios/drivers/audio_dac_basic.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'platforms/chibios/drivers/audio_dac_basic.c') diff --git a/platforms/chibios/drivers/audio_dac_basic.c b/platforms/chibios/drivers/audio_dac_basic.c index 5f0cbf8f84..4ea23a2158 100644 --- a/platforms/chibios/drivers/audio_dac_basic.c +++ b/platforms/chibios/drivers/audio_dac_basic.c @@ -19,6 +19,10 @@ #include "ch.h" #include "hal.h" +// Need to disable GCC's "tautological-compare" warning for this file, as it causes issues when running `KEEP_INTERMEDIATES=yes`. Corresponding pop at the end of the file. +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wtautological-compare" + /* Audio Driver: DAC @@ -247,3 +251,5 @@ void audio_driver_start(void) { } gptStartContinuous(&AUDIO_STATE_TIMER, 2U); } + +#pragma GCC diagnostic pop -- cgit v1.2.3