From f5e1533f2f19327f60723b5326c122b81066f2db Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Fri, 3 Mar 2023 01:33:28 +0000 Subject: [PATCH] Suppress the error warning Bug: https://android-build.googleplex.com/builds/pending/P51300433/aosp_bramble-userdebug/latest/view/logs/build_error.log Test: None Change-Id: I2fbd3d8772c50ed9de1c2ba9eb2234966c7dcb84 --- debuggerd/crasher/crasher.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debuggerd/crasher/crasher.cpp b/debuggerd/crasher/crasher.cpp index 4eb738205..4043a6e03 100644 --- a/debuggerd/crasher/crasher.cpp +++ b/debuggerd/crasher/crasher.cpp @@ -159,7 +159,8 @@ noinline void sigsegv_non_null() { } noinline void fprintf_null() { - fprintf(nullptr, "oops"); + FILE* sneaky_null = nullptr; + fprintf(sneaky_null, "oops"); } noinline void readdir_null() {