From 949aa238981e6cedfc6d3f12fc9001a71162c6f3 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Mon, 8 Sep 2014 19:09:41 -0700 Subject: Fix some clang compilation issues. Use expected inline behavior with clang. GCC defaults to -std=gnu90, giving C89 inline semantics with GNU extensions. Clang defaults to C99. Explicitly use gnu90. Mark an unused parameter as __unused. Fix some incorrect casts. Change-Id: I05b95585d5e3688eda71769b63b6b8a9237bcaf4 --- libpixelflinger/codeflinger/CodeCache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpixelflinger/codeflinger') diff --git a/libpixelflinger/codeflinger/CodeCache.cpp b/libpixelflinger/codeflinger/CodeCache.cpp index cfd2b37..d770302 100644 --- a/libpixelflinger/codeflinger/CodeCache.cpp +++ b/libpixelflinger/codeflinger/CodeCache.cpp @@ -201,8 +201,8 @@ int CodeCache::cache( const AssemblyKeyBase& keyBase, mCacheInUse += assemblySize; mWhen++; // synchronize caches... - void* base = assembly->base(); - void* curr = (uint8_t*)base + assembly->size(); + char* base = reinterpret_cast(assembly->base()); + char* curr = reinterpret_cast(base + assembly->size()); __builtin___clear_cache(base, curr); } -- cgit v1.1