From d542a60ae6e82bcf186b33b0f51d3fe632bb8893 Mon Sep 17 00:00:00 2001 From: Henry Gabryjelski Date: Thu, 25 Mar 2021 14:52:25 -0700 Subject: [PATCH] Cast to integral type ignores qualifier `volatile` Attempting to cast to a `volatile uint32_t` does nothing different from cast to a `uint32_t`, with the exception of **_looking like_** it's accessing a register. --- cores/arduino/Reset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/arduino/Reset.cpp b/cores/arduino/Reset.cpp index a16a7296a..9bde4a8c0 100644 --- a/cores/arduino/Reset.cpp +++ b/cores/arduino/Reset.cpp @@ -29,7 +29,7 @@ extern "C" { #if (ARDUINO_SAMD_VARIANT_COMPLIANCE >= 10610) extern const uint32_t __text_start__; -#define APP_START ((volatile uint32_t)(&__text_start__) + 4) +#define APP_START ((uint32_t)(&__text_start__) + 4) #else