Skip to content

Commit a766884

Browse files
committed
Remove silencer for -Warray-bounds
1 parent 80fa66f commit a766884

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/libwolfboot.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -176,18 +176,10 @@ static const uint32_t wolfboot_magic_trail = WOLFBOOT_MAGIC_TRAIL;
176176
#include <string.h>
177177
static uint8_t NVM_CACHE[NVM_CACHE_SIZE] __attribute__((aligned(16)));
178178
static int nvm_cached_sector = 0;
179-
180-
#ifdef __GNUC__
181-
#pragma GCC diagnostic push
182-
#pragma GCC diagnostic ignored "-Warray-bounds"
183-
#endif
184179
static uint8_t get_base_offset(uint8_t *base, uintptr_t off)
185180
{
186181
return *(base - off); /* ignore array bounds error */
187182
}
188-
#ifdef __GNUC__
189-
#pragma GCC diagnostic pop
190-
#endif
191183

192184
void WEAKFUNCTION hal_cache_invalidate(void)
193185
{

0 commit comments

Comments
 (0)