Bug 1629429 - Removing optional second argument in static_assert() r=sylvestre

The seconds argument for diagnostic message is optional from C++17

Differential Revision: https://phabricator.services.mozilla.com/D73556
This commit is contained in:
Shishir Jaiswal 2020-05-02 21:51:13 +00:00
parent a121521c76
commit a285d5eb51

View File

@ -123,8 +123,8 @@ static uintptr_t GetDesiredRegionSize() { return sysconf(_SC_PAGESIZE); }
#endif // system dependencies
static_assert(sizeof(uintptr_t) == 4 || sizeof(uintptr_t) == 8, "");
static_assert(sizeof(uintptr_t) == sizeof(void*), "");
static_assert((sizeof(uintptr_t) == 4 || sizeof(uintptr_t) == 8) &&
(sizeof(uintptr_t) == sizeof(void*)));
static uintptr_t ReservePoisonArea(uintptr_t rgnsize) {
if (sizeof(uintptr_t) == 8) {