Skip to content

Commit

Permalink
Hoist warning ignore to wait.h
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc committed Apr 4, 2023
1 parent add42e4 commit 2596ccd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 4 additions & 0 deletions platforms/avr/_wait.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 2 additions & 5 deletions tmk_core/protocol/usb_hid/override_wiring.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
*/
#define __DELAY_BACKWARD_COMPATIBLE__

// 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
#include <wait.h>

#include "platforms/timer.h"

Expand All @@ -32,3 +28,4 @@ void init(void)
{
timer_init();
}

0 comments on commit 2596ccd

Please sign in to comment.