Skip to content

Commit 7f17a45

Browse files
authored
Remove PICO_FLASH_SIZE_BYTES warning from header as it breaks any build with -Werror; actual uses that care should warn instead (#229)
1 parent 0a940b8 commit 7f17a45

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

lib/tinyusb

src/rp2_common/hardware_flash/include/hardware/flash.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@
4545
#define FLASH_UNIQUE_ID_SIZE_BYTES 8
4646

4747
// PICO_CONFIG: PICO_FLASH_SIZE_BYTES, size of primary flash in bytes, type=int, group=hardware_flash
48-
#ifndef PICO_FLASH_SIZE_BYTES
49-
#warning PICO_FLASH_SIZE_BYTES is not set
50-
#endif
5148

5249
#ifdef __cplusplus
5350
extern "C" {

src/rp2_common/pico_double/double_init_rom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
uint32_t sd_table[SF_TABLE_V2_SIZE / 2];
1414

1515
#if !PICO_DOUBLE_SUPPORT_ROM_V1
16-
static __attribute__((noreturn)) void missing_double_func_shim() {
16+
static __attribute__((noreturn)) void missing_double_func_shim(void) {
1717
panic("missing double function");
1818
}
1919
#endif

src/rp2_common/pico_float/float_init_rom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ uint32_t sf_table[SF_TABLE_V2_SIZE / 2];
1414
void *sf_clz_func;
1515

1616
#if !PICO_FLOAT_SUPPORT_ROM_V1
17-
static __attribute__((noreturn)) void missing_float_func_shim() {
17+
static __attribute__((noreturn)) void missing_float_func_shim(void) {
1818
panic("");
1919
}
2020
#endif

0 commit comments

Comments
 (0)