Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82959f5e authored by Ian Rogers's avatar Ian Rogers Committed by android code review
Browse files

Merge "Remove unnecessary compiler pragma."

parents af03b050 04b5ac36
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -22,13 +22,13 @@
#include <unistd.h>
#include <sys/mman.h>

#include <cutils/log.h>
#include <cutils/ashmem.h>
#include <cutils/atomic.h>
#define LOG_TAG "CodeCache"
#include <cutils/log.h>

#include "codeflinger/CodeCache.h"

#define LOG_TAG "CodeCache"
#include "codeflinger/CodeCache.h"

namespace android {

@@ -63,12 +63,7 @@ static void heap_error(const char* msg, const char* function, void* p);
#define USAGE_ERROR_ACTION(m,p) \
    heap_error("ARGUMENT IS INVALID HEAP ADDRESS", __FUNCTION__, p)


#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#pragma GCC diagnostic ignored "-Wempty-body"
#include "../../../../bionic/libc/upstream-dlmalloc/malloc.c"
#pragma GCC diagnostic warning "-Wstrict-aliasing"
#pragma GCC diagnostic warning "-Wempty-body"

static void heap_error(const char* msg, const char* function, void* p) {
    ALOG(LOG_FATAL, LOG_TAG, "@@@ ABORTING: CODE FLINGER: %s IN %s addr=%p",