Skip to content

Commit df59774

Browse files
authored
Pointer<->Int casts are not constexpr (#8796)
1 parent c8dcded commit df59774

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cores/esp8266/esp_priv.h

+2-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@
2323

2424
#if defined(CORE_MOCK)
2525

26-
constexpr bool __byteAddressable(const void* addr)
26+
constexpr bool __byteAddressable(const void*)
2727
{
28-
(void)addr;
2928
return true;
3029
}
3130

@@ -34,7 +33,7 @@ constexpr bool __byteAddressable(const void* addr)
3433
#include <sys/config.h>
3534

3635
// returns true when addr can be used without "pgm_" functions or non32xfer service
37-
constexpr bool __byteAddressable(const void* addr)
36+
inline bool __byteAddressable(const void* addr)
3837
{
3938
return addr < (const void*)(XCHAL_DATARAM0_VADDR + XCHAL_DATARAM0_SIZE);
4039
}

0 commit comments

Comments
 (0)