breakpad/src
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
..
build Fix MSVC build on 64-bit 2017-09-25 07:10:11 +00:00
client Move main executable handling out of procmaps parser loop. 2017-10-17 20:19:03 +00:00
common Avoid skipping an initializer with a goto 2017-10-26 22:25:57 +00:00
google_breakpad Add -s flag to microdump_stackwalk for dumping stack contents. 2017-10-17 10:22:46 +00:00
processor Provide helper wrappers for basename(3) and dirname(3) 2017-10-18 15:44:59 +00:00
third_party drop bundled gflags from the checkout 2017-09-13 23:38:29 +00:00
tools Provide helper wrappers for basename(3) and dirname(3) 2017-10-18 15:44:59 +00:00
breakpad_googletest_includes.h test: allow use of system gmock/gtest libs 2016-01-25 19:27:56 -05:00
config.h.in Only use O_CLOEXEC on platforms that support it 2017-05-10 21:32:37 +00:00