1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-08 17:02:26 +03:00

Fix minor GCC10 static analyzer warnings (#7255)

Add minor NULL and double-free checks to source, identified using GCC10
pre-release static `-fanalyzer` on the coude.  These are harmless to
other versions.

Also add explicit include of stdint to Schedule.h, because libstdc++20
will not automatically include it.  Safe and no-op on earlier versions.
This commit is contained in:
Earle F. Philhower, III
2020-04-30 18:25:31 -07:00
committed by GitHub
parent a9cf12fcf0
commit 388d3020f2
3 changed files with 19 additions and 12 deletions

View File

@ -2,6 +2,7 @@
#define ESP_SCHEDULE_H
#include <functional>
#include <stdint.h>
#define SCHEDULED_FN_MAX_COUNT 32