Make static_assert C++11 compatible

static_assert without a message is C++17. Which we can't use 5 years later.
This commit is contained in:
Fabian Boehm 2022-07-24 16:53:53 +02:00
parent bcd84c6908
commit e04785604a

View File

@ -272,7 +272,7 @@ check_cxx_source_compiles("
#include <sys/wait.h>
int main() {
static_assert(WEXITSTATUS(0x007f) == 0x7f);
static_assert(WEXITSTATUS(0x007f) == 0x7f, \"This is our message we need to add because C++ is terrible\");
return 0;
}
"