linux: fix missing includes and warnings

Change-Id: If83d74d86f4792ad8f8c4c62116457d1126ae9e9
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3404959
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Joshua Peraza <jperaza@chromium.org>
This commit is contained in:
Joshua Peraza 2022-01-20 11:36:38 -08:00 committed by Crashpad LUCI CQ
parent 1cf99ea4d2
commit 50531fc68f
2 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,8 @@
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h> #include <unistd.h>
#include <atomic>
#include "base/logging.h" #include "base/logging.h"
#include "base/strings/stringprintf.h" #include "base/strings/stringprintf.h"
#include "build/build_config.h" #include "build/build_config.h"

View File

@ -223,7 +223,10 @@ sigjmp_buf do_crash_sigjmp_env;
bool HandleCrashSuccessfully(int, siginfo_t*, ucontext_t*) { bool HandleCrashSuccessfully(int, siginfo_t*, ucontext_t*) {
siglongjmp(do_crash_sigjmp_env, 1); siglongjmp(do_crash_sigjmp_env, 1);
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunreachable-code-return"
return true; return true;
#pragma clang diagnostic pop
} }
void DoCrash(const StartHandlerForSelfTestOptions& options, void DoCrash(const StartHandlerForSelfTestOptions& options,