From 9510762b45795ecb928d5829c2d5c7b499edf990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9F=83=E5=8D=9A=E6=8B=89=E9=85=B1?= <33191697+Silver-Fang@users.noreply.github.com> Date: Tue, 8 Oct 2024 19:49:21 +0800 Subject: [PATCH] Fix atexit signature Fix the atexit signature to be consistent with --- cores/arduino/Arduino.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/arduino/Arduino.h b/cores/arduino/Arduino.h index 91eeb16bc..2c872dca7 100644 --- a/cores/arduino/Arduino.h +++ b/cores/arduino/Arduino.h @@ -129,7 +129,7 @@ typedef uint8_t byte; void init(void); void initVariant(void); -int atexit(void (*func)()) __attribute__((weak)); +int atexit(void (*func)(void)) __attribute__((weak)); void pinMode(uint8_t pin, uint8_t mode); void digitalWrite(uint8_t pin, uint8_t val);