From f99e4523a162a5f0c88be536d50d3332560453e8 Mon Sep 17 00:00:00 2001 From: Henry Gabryjelski Date: Mon, 29 Mar 2021 16:43:32 -0700 Subject: [PATCH] Fix compiler warning from useless volatile "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 doing something different. Just remove the `volatile` qualifier to fix. See also https://github.com/adafruit/ArduinoCore-samd/pull/288 --- 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 21592d759..c53915e0f 100644 --- a/cores/arduino/Reset.cpp +++ b/cores/arduino/Reset.cpp @@ -28,7 +28,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 #define APP_START 0x00002004 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy