Details
Description
Noticed in ROSTESTS-298, which would be nice to reproduce/detect with MsVC Debug builds too.
3 if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
4 # no optimization
|
5 add_compile_flags("/Ob0 /Od")
|
6 elseif(CMAKE_BUILD_TYPE STREQUAL "Release")
|
7 add_compile_flags("/Ox /Ob2 /Ot /Oy /GT /GF")
|
...
|
–
(MsDN) /Gf, /GF (Eliminate Duplicate Strings)
Why do compilers allow string literals not to be const?
says this behavior is not the default for historical reasons...
Attachments
Issue Links
- relates to
-
ROSTESTS-298 [WXP/WS03] "kmtest_ FsRtlTunnel": "Bug Check 0xBE: ATTEMPTED_WRITE_TO_READONLY_MEMORY"
- Resolved