mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-23 08:45:22 +03:00
Fix warnings (#2881)
* Suppressed -Wunused-parameter and -Wunused-function by casting to void unused identifiers. * Explicit initialization of all fields to suppress -Wmissing-field-initializers. * Fixed signed/unsigned integer comparison. * memset initialization of structs. * More -Wunused-parameter fixes.
This commit is contained in:
committed by
Ivan Grokhotkov
parent
d85e783806
commit
2126146e20
@ -83,6 +83,7 @@ EspClass ESP;
|
||||
|
||||
void EspClass::wdtEnable(uint32_t timeout_ms)
|
||||
{
|
||||
(void) timeout_ms;
|
||||
/// This API can only be called if software watchdog is stopped
|
||||
system_soft_wdt_restart();
|
||||
}
|
||||
@ -432,7 +433,7 @@ uint32_t EspClass::getSketchSize() {
|
||||
section_index < image_header.num_segments;
|
||||
++section_index)
|
||||
{
|
||||
section_header_t section_header = {0};
|
||||
section_header_t section_header = {0, 0};
|
||||
if (spi_flash_read(pos, (uint32_t*) §ion_header, sizeof(section_header))) {
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user