mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
pico_bootrom: bootrom.h: fix -Wstrict-prototypes (#1888)
The refactoring of these functions removed the (void) in the function declarations - thus compiling with -Wstrict-prototypes will yell at us at compile time. Signed-off-by: Stefan Kerkmann <karlk90@pm.me>
This commit is contained in:
parent
d886df6eb0
commit
3cb21c8134
1 changed files with 4 additions and 4 deletions
|
|
@ -274,7 +274,7 @@ static inline void __attribute__((noreturn)) reset_usb_boot(uint32_t usb_activit
|
|||
* bank 0 IOs are untouched.
|
||||
* \endif
|
||||
*/
|
||||
static inline void rom_connect_internal_flash() {
|
||||
static inline void rom_connect_internal_flash(void) {
|
||||
rom_connect_internal_flash_fn func = (rom_connect_internal_flash_fn) rom_func_lookup_inline(ROM_FUNC_CONNECT_INTERNAL_FLASH);
|
||||
func();
|
||||
}
|
||||
|
|
@ -305,7 +305,7 @@ static inline void rom_connect_internal_flash() {
|
|||
* device from its XIP state to a serial command state.
|
||||
* \endif
|
||||
*/
|
||||
static inline void rom_flash_exit_xip() {
|
||||
static inline void rom_flash_exit_xip(void) {
|
||||
rom_flash_exit_xip_fn func = (rom_flash_exit_xip_fn) rom_func_lookup_inline(ROM_FUNC_FLASH_EXIT_XIP);
|
||||
func();
|
||||
}
|
||||
|
|
@ -388,7 +388,7 @@ static inline void rom_flash_range_program(uint32_t addr, const uint8_t *data, s
|
|||
* No other operations are performed.
|
||||
* \endif
|
||||
*/
|
||||
static inline void rom_flash_flush_cache() {
|
||||
static inline void rom_flash_flush_cache(void) {
|
||||
rom_flash_flush_cache_fn func = (rom_flash_flush_cache_fn) rom_func_lookup_inline(ROM_FUNC_FLASH_FLUSH_CACHE);
|
||||
func();
|
||||
}
|
||||
|
|
@ -404,7 +404,7 @@ static inline void rom_flash_flush_cache() {
|
|||
* Note that the same setup is performed by flash_exit_xip(), and the RP2350 flash program/erase functions do not leave XIP in an
|
||||
* inaccessible state, so calls to this function are largely redundant on RP2350. It is provided on RP2350 for compatibility with RP2040.
|
||||
*/
|
||||
static inline void rom_flash_enter_cmd_xip() {
|
||||
static inline void rom_flash_enter_cmd_xip(void) {
|
||||
rom_flash_enter_cmd_xip_fn func = (rom_flash_enter_cmd_xip_fn) rom_func_lookup_inline(ROM_FUNC_FLASH_ENTER_CMD_XIP);
|
||||
func();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue