diff options
author | Scott Lobdell <slobdell@google.com> | 2021-04-07 05:35:55 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-04-07 05:35:55 +0000 |
commit | ec6cfacad7283c60a33cfefacf5031247a2f81dc (patch) | |
tree | 5b473e86fc8ab0afc2241b6ac25875b25fa354bd /debuggerd/crasher/crasher.cpp | |
parent | 79aff2b0a0653fcafaf9099ad60075f2903e8de1 (diff) | |
parent | 268fff7088f0ab311c2de902178054ce40a42243 (diff) |
Merge "Merge SP1A.210329.001" into s-keystone-qcom-dev
Diffstat (limited to 'debuggerd/crasher/crasher.cpp')
-rw-r--r-- | debuggerd/crasher/crasher.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/debuggerd/crasher/crasher.cpp b/debuggerd/crasher/crasher.cpp index a2b13a36c..db30b8f07 100644 --- a/debuggerd/crasher/crasher.cpp +++ b/debuggerd/crasher/crasher.cpp @@ -134,10 +134,14 @@ noinline int crash(int a) { return a*2; } +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wfree-nonheap-object" + noinline void abuse_heap() { char buf[16]; free(buf); // GCC is smart enough to warn about this, but we're doing it deliberately. } +#pragma clang diagnostic pop noinline void leak() { while (true) { |