Skip to content

Commit

Permalink
Pointer<->Int casts are not constexpr (#8796)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed Jan 9, 2023
1 parent c8dcded commit df59774
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cores/esp8266/esp_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@

#if defined(CORE_MOCK)

constexpr bool __byteAddressable(const void* addr)
constexpr bool __byteAddressable(const void*)
{
(void)addr;
return true;
}

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

// returns true when addr can be used without "pgm_" functions or non32xfer service
constexpr bool __byteAddressable(const void* addr)
inline bool __byteAddressable(const void* addr)
{
return addr < (const void*)(XCHAL_DATARAM0_VADDR + XCHAL_DATARAM0_SIZE);
}
Expand Down

0 comments on commit df59774

Please sign in to comment.