CMakeLists: Specify the /volatile flag with standard-conforming semantics
Makes Windows builds more standard-compliant. Given we currently make no use of volatile, and the libraries we currently use don't use it any meaningful way, this is safe to specify without worrying.
This commit is contained in:
parent
0d3375fc22
commit
9d33ea3136
1 changed files with 1 additions and 0 deletions
|
@ -58,6 +58,7 @@ if (MSVC)
|
||||||
/Zc:externConstexpr # Allows external linkage for variables declared "extern constexpr", as the standard permits.
|
/Zc:externConstexpr # Allows external linkage for variables declared "extern constexpr", as the standard permits.
|
||||||
/Zc:inline # Omits inline functions from object-file output.
|
/Zc:inline # Omits inline functions from object-file output.
|
||||||
/Zc:throwingNew # Assumes new (without std::nothrow) never returns null.
|
/Zc:throwingNew # Assumes new (without std::nothrow) never returns null.
|
||||||
|
/volatile:iso # Use strict standard-abiding volatile semantics
|
||||||
/DNOMINMAX)
|
/DNOMINMAX)
|
||||||
|
|
||||||
if (DYNARMIC_WARNINGS_AS_ERRORS)
|
if (DYNARMIC_WARNINGS_AS_ERRORS)
|
||||||
|
|
Loading…
Reference in a new issue