Skip to content

Commit f99e452

Browse files
authored
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 adafruit#288
1 parent ed76cf5 commit f99e452

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/Reset.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ extern "C" {
2828
#if (ARDUINO_SAMD_VARIANT_COMPLIANCE >= 10610)
2929

3030
extern const uint32_t __text_start__;
31-
#define APP_START ((volatile uint32_t)(&__text_start__) + 4)
31+
#define APP_START ((uint32_t)(&__text_start__) + 4)
3232

3333
#else
3434
#define APP_START 0x00002004

0 commit comments

Comments
 (0)