summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Albert2014-09-08 21:09:41 -0500
committerDan Albert2014-09-11 12:17:32 -0500
commit949aa238981e6cedfc6d3f12fc9001a71162c6f3 (patch)
treefb3c65fa385ede94bf30e5390bf35b83f7b9b66f /libpixelflinger
parent2c805883408339823d3f3ca23aceb08a1783ebbd (diff)
downloadplatform-system-core-949aa238981e6cedfc6d3f12fc9001a71162c6f3.tar.gz
platform-system-core-949aa238981e6cedfc6d3f12fc9001a71162c6f3.tar.xz
platform-system-core-949aa238981e6cedfc6d3f12fc9001a71162c6f3.zip
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
Diffstat (limited to 'libpixelflinger')
-rw-r--r--libpixelflinger/codeflinger/CodeCache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpixelflinger/codeflinger/CodeCache.cpp b/libpixelflinger/codeflinger/CodeCache.cpp
index cfd2b3709..d770302f2 100644
--- a/libpixelflinger/codeflinger/CodeCache.cpp
+++ b/libpixelflinger/codeflinger/CodeCache.cpp
@@ -201,8 +201,8 @@ int CodeCache::cache( const AssemblyKeyBase& keyBase,
201 mCacheInUse += assemblySize; 201 mCacheInUse += assemblySize;
202 mWhen++; 202 mWhen++;
203 // synchronize caches... 203 // synchronize caches...
204 void* base = assembly->base(); 204 char* base = reinterpret_cast<char*>(assembly->base());
205 void* curr = (uint8_t*)base + assembly->size(); 205 char* curr = reinterpret_cast<char*>(base + assembly->size());
206 __builtin___clear_cache(base, curr); 206 __builtin___clear_cache(base, curr);
207 } 207 }
208 208