Remove PICO_FLASH_SIZE_BYTES warning from header as it breaks any build with -Werror; actual uses that care should warn instead (#229)

This commit is contained in:
Graham Sanderson 2021-03-04 20:20:56 -06:00 committed by graham sanderson
parent 4c768d2bb8
commit 04ee63428f
4 changed files with 3 additions and 6 deletions

@ -1 +1 @@
Subproject commit 11c23f88bf42f64ce14b8a7b0b2a4e207dc4dd12
Subproject commit e0aa405d19e35dbf58cf502b8106455c1a3c2a5c

View File

@ -45,9 +45,6 @@
#define FLASH_UNIQUE_ID_SIZE_BYTES 8
// PICO_CONFIG: PICO_FLASH_SIZE_BYTES, size of primary flash in bytes, type=int, group=hardware_flash
#ifndef PICO_FLASH_SIZE_BYTES
#warning PICO_FLASH_SIZE_BYTES is not set
#endif
#ifdef __cplusplus
extern "C" {

View File

@ -13,7 +13,7 @@
uint32_t sd_table[SF_TABLE_V2_SIZE / 2];
#if !PICO_DOUBLE_SUPPORT_ROM_V1
static __attribute__((noreturn)) void missing_double_func_shim() {
static __attribute__((noreturn)) void missing_double_func_shim(void) {
panic("missing double function");
}
#endif

View File

@ -14,7 +14,7 @@ uint32_t sf_table[SF_TABLE_V2_SIZE / 2];
void *sf_clz_func;
#if !PICO_FLOAT_SUPPORT_ROM_V1
static __attribute__((noreturn)) void missing_float_func_shim() {
static __attribute__((noreturn)) void missing_float_func_shim(void) {
panic("");
}
#endif