gcc11.patch 777 B

123456789101112
  1. diff --git a/third_party/breakpad/src/client/linux/handler/exception_handler.cc b/third_party/breakpad/src/client/linux/handler/exception_handler.cc
  2. --- a/third_party/breakpad/src/client/linux/handler/exception_handler.cc
  3. +++ b/third_party/breakpad/src/client/linux/handler/exception_handler.cc
  4. @@ -138,7 +138,7 @@ void InstallAlternateStackLocked() {
  5. // SIGSTKSZ may be too small to prevent the signal handlers from overrunning
  6. // the alternative stack. Ensure that the size of the alternative stack is
  7. // large enough.
  8. - static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
  9. + const unsigned kSigStackSize = std::max<unsigned>(16384, SIGSTKSZ);
  10. // Only set an alternative stack if there isn't already one, or if the current
  11. // one is too small.