mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
Fix GCC 9.1 warnings (except Ticker.h, gdbstub) (#6298)
Cleans up all warnings seen w/GCC 9.1 to allow it to track the main branch more easily until 3.x. Does not include Ticker.h "fix" of pragmas around a function cast we're doing that GCC9 doesn't like, that will be addressed separately and maybe only in the 3.0 branch. Does not include GDB hook fix, either, because the pragmas required to disable the GCC9.1 warnings don't exist in 4.8 at all.
This commit is contained in:
committed by
GitHub
parent
c18b402c31
commit
52f8c62b81
@ -900,7 +900,7 @@ void ATTR_GDBINIT gdbstub_set_uart_isr_callback(void (*func)(void*, uint8_t), vo
|
||||
|
||||
|
||||
//gdbstub initialization routine.
|
||||
void ATTR_GDBINIT gdbstub_init() {
|
||||
void gdbstub_init() {
|
||||
#if GDBSTUB_REDIRECT_CONSOLE_OUTPUT
|
||||
os_install_putc1(gdbstub_semihost_putchar1);
|
||||
#endif
|
||||
@ -923,4 +923,4 @@ bool ATTR_GDBEXTERNFN gdb_present() {
|
||||
}
|
||||
|
||||
void ATTR_GDBFN gdb_do_break() { gdbstub_do_break(); }
|
||||
void ATTR_GDBINIT gdb_init() __attribute__((alias("gdbstub_init")));
|
||||
void gdb_init() __attribute__((alias("gdbstub_init")));
|
||||
|
Reference in New Issue
Block a user