Commit aab8de63 authored by Ben Cheng's avatar Ben Cheng
Browse files

Use default visibility for __assert and __assert2.

We will change the build file to link static libraries before shared
libraries soon. Without this change the linker will complain their
visibilities.

BUG: 8247455
Change-Id: Iec97be4b42114b5a28174a03f9d8017e85b28668
parent 55cb1cdf
......@@ -19,6 +19,8 @@
#include <utils/Log.h>
#pragma GCC visibility push(default)
void __assert(const char *file, int line, const char *failedexpr)
{
LOG_ALWAYS_FATAL("assertion \"%s\" failed: file \"%s\", line %d", failedexpr, file, line);
......@@ -31,3 +33,5 @@ void __assert2(const char *file, int line, const char *func, const char *failede
failedexpr, file, line, func);
// not reached
}
#pragma GCC visibility pop
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment