aboutsummaryrefslogtreecommitdiff
path: root/src/client/linux/handler
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-12-30 15:44:02 -0800
committerLei Zhang <thestig@chromium.org>2015-12-30 15:44:02 -0800
commitf9b60452e1698b27fd5df7a83a29196271862300 (patch)
tree9e5b649584b606c3951c64991cacff2bdf58011b /src/client/linux/handler
parentLet breakpad build with -Wall on OS X and Linux. (diff)
downloadbreakpad-f9b60452e1698b27fd5df7a83a29196271862300.tar.xz
Fix -Wunused-function warnings in ASAN builds.
A=thakis@chromium.org BUG=chromium:573250 Original Review: https://codereview.chromium.org/1551963002/ Review URL: https://codereview.chromium.org/1551983002 .
Diffstat (limited to 'src/client/linux/handler')
-rw-r--r--src/client/linux/handler/exception_handler_unittest.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/client/linux/handler/exception_handler_unittest.cc b/src/client/linux/handler/exception_handler_unittest.cc
index b4065b41..439b3c38 100644
--- a/src/client/linux/handler/exception_handler_unittest.cc
+++ b/src/client/linux/handler/exception_handler_unittest.cc
@@ -262,8 +262,6 @@ TEST(ExceptionHandlerTest, ChildCrashWithFD) {
ASSERT_NO_FATAL_FAILURE(ChildCrash(true));
}
-#endif // !ADDRESS_SANITIZER
-
static bool DoneCallbackReturnFalse(const MinidumpDescriptor& descriptor,
void* context,
bool succeeded) {
@@ -305,8 +303,6 @@ static bool InstallRaiseSIGKILL() {
return sigaction(SIGSEGV, &sa, NULL) != -1;
}
-#ifndef ADDRESS_SANITIZER
-
static void CrashWithCallbacks(ExceptionHandler::FilterCallback filter,
ExceptionHandler::MinidumpCallback done,
string path) {
@@ -878,6 +874,8 @@ TEST(ExceptionHandlerTest, ModuleInfo) {
unlink(minidump_desc.path());
}
+#ifndef ADDRESS_SANITIZER
+
static const unsigned kControlMsgSize =
CMSG_SPACE(sizeof(int)) + CMSG_SPACE(sizeof(struct ucred));
@@ -930,8 +928,6 @@ CrashHandler(const void* crash_context, size_t crash_context_size,
return true;
}
-#ifndef ADDRESS_SANITIZER
-
TEST(ExceptionHandlerTest, ExternalDumper) {
int fds[2];
ASSERT_NE(socketpair(AF_UNIX, SOCK_DGRAM, 0, fds), -1);