1
0
Fork 0

Disable specific warnings to mitigate compilation problems with KEEP_INTERMEDIATES=yes. (#20339)

This commit is contained in:
Nick Brassel 2023-04-05 14:59:09 +10:00 committed by GitHub
parent f1dbffe367
commit 06c5c02804
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 25 additions and 6 deletions

View file

@ -15,7 +15,11 @@
*/
#pragma once
// Need to disable GCC's "maybe-uninitialized" warning for this file, as it causes issues when running `KEEP_INTERMEDIATES=yes`.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#include <util/delay.h>
#pragma GCC diagnostic pop
// http://ww1.microchip.com/downloads/en/devicedoc/atmel-0856-avr-instruction-set-manual.pdf
// page 22: Table 4-2.Arithmetic and Logic Instructions