From 92dc3fc52cf097bd105460cf377779bdcf146d62 Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Wed, 12 Mar 2014 13:12:44 -0700 Subject: native frameworks: 64-bit compile issues - Fix format (print/scanf) - Suppress unused argument warning messages (bonus) Change-Id: I05c7724d2aba6da1e82a86000e11f3a8fef4e728 --- opengl/libagl/array.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'opengl/libagl/array.cpp') diff --git a/opengl/libagl/array.cpp b/opengl/libagl/array.cpp index 7fbe9b5f96..54207fa212 100644 --- a/opengl/libagl/array.cpp +++ b/opengl/libagl/array.cpp @@ -397,9 +397,9 @@ void vertex_cache_t::clear() } } +#if VC_CACHE_STATISTICS void vertex_cache_t::dump_stats(GLenum mode) { -#if VC_CACHE_STATISTICS nsecs_t time = systemTime(SYSTEM_TIME_THREAD) - startTime; uint32_t hits = total - misses; uint32_t prim_count; @@ -418,8 +418,12 @@ void vertex_cache_t::dump_stats(GLenum mode) total, hits, misses, (hits*100)/total, prim_count, int(ns2us(time)), int(prim_count*float(seconds(1))/time), float(misses) / prim_count); -#endif } +#else +void vertex_cache_t::dump_stats(GLenum /*mode*/) +{ +} +#endif // ---------------------------------------------------------------------------- #if 0 -- cgit v1.2.3-59-g8ed1b