breakpad/src/common/windows
Bruce Dawson 73d2773f9f Avoid skipping an initializer with a goto
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>
2017-10-26 22:25:57 +00:00
..
common_windows.gyp Fix Windows dump_syms x64 linking 2015-03-06 20:12:00 +00:00
dia_util.cc Add parameter --product to symupload.exe 2014-11-17 22:47:05 +00:00
dia_util.h Adding support for 64-bit Windows modules to ms_symbol_server_converter. 2014-04-10 17:54:52 +00:00
guid_string.cc Replace GB_WSU_SAFE_SWPRINTF_TERMINATE with inline code (#145 followup). 2007-04-04 16:13:55 +00:00
guid_string.h Fix Windows client compilation on mingw. 2014-11-03 17:05:39 +00:00
http_upload.cc Support for multiple upload files in CrashReportSender/HTTPUpload 2015-10-06 11:05:12 -04:00
http_upload.h Support for multiple upload files in CrashReportSender/HTTPUpload 2015-10-06 11:05:12 -04:00
omap.cc Handle ntdll only emitting PUBLIC at func entry 2017-02-23 18:28:02 +00:00
omap.h Adding support for 64-bit Windows modules to ms_symbol_server_converter. 2014-04-10 17:54:52 +00:00
omap_internal.h Handle ntdll only emitting PUBLIC at func entry 2017-02-23 18:28:02 +00:00
omap_unittest.cc windows: update gtest/gmock paths 2017-02-11 18:03:31 +00:00
pdb_source_line_writer.cc Avoid skipping an initializer with a goto 2017-10-26 22:25:57 +00:00
pdb_source_line_writer.h Replace uses of hash_map with unordered_map 2015-02-02 14:05:45 +00:00
string_utils-inl.h Adding support for 64-bit Windows modules to ms_symbol_server_converter. 2014-04-10 17:54:52 +00:00
string_utils.cc Fix Windows client compilation on mingw. 2014-11-03 17:05:39 +00:00