mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-11-11 02:44:54 +00:00
C++ doesn't allow skipping initialization with a goto. This means that
this code is illegal:
void func(bool b) {
if(b) goto END;
int value = 0; //error C2362 with /permissive-
//... value used here
END:
return;
}
Adding an extra scope makes the code legal. This problem is only
detected with /permissive- but now that compiling with this
switch is practical we might as well stay /permissive- clean:
https://blogs.msdn.microsoft.com/vcblog/2016/11/16/permissive-switch/
Note that compiling /permissive- clean only works with the 10.0.16299.0
SDK which currently has other issues...
Bug: 773476
Change-Id: I54e64aaef46d70a817cf7da272f76d9ae5f6a6f7
Reviewed-on: https://chromium-review.googlesource.com/740287
Reviewed-by: Mark Mentovai <mark@chromium.org>
|
||
|---|---|---|
| .. | ||
| common_windows.gyp | ||
| dia_util.cc | ||
| dia_util.h | ||
| guid_string.cc | ||
| guid_string.h | ||
| http_upload.cc | ||
| http_upload.h | ||
| omap.cc | ||
| omap.h | ||
| omap_internal.h | ||
| omap_unittest.cc | ||
| pdb_source_line_writer.cc | ||
| pdb_source_line_writer.h | ||
| string_utils-inl.h | ||
| string_utils.cc | ||