From 3d3ebb75c82c4d8c66d9c2029dac16a1d4758dd2 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Thu, 27 Mar 2014 17:23:17 +0100 Subject: emulator/opengl: Fix misc. compiler warnings. These warnings appear when building the sources through the emulator's standalone build system, not the platform one. Change-Id: Ib5d51cf6211f32763be00c7436ae14c06f76b436 --- emulator/opengl/shared/emugl/common/pod_vector.cpp | 1 - emulator/opengl/shared/emugl/common/pod_vector.h | 2 -- 2 files changed, 3 deletions(-) (limited to 'emulator/opengl/shared/emugl') diff --git a/emulator/opengl/shared/emugl/common/pod_vector.cpp b/emulator/opengl/shared/emugl/common/pod_vector.cpp index 3fe8f15..c8ec3a6 100644 --- a/emulator/opengl/shared/emugl/common/pod_vector.cpp +++ b/emulator/opengl/shared/emugl/common/pod_vector.cpp @@ -90,7 +90,6 @@ void PodVectorBase::resize(size_t newSize, size_t itemSize) { } void PodVectorBase::reserve(size_t newSize, size_t itemSize) { - const size_t kMaxSize = maxItemCapacity(itemSize); if (newSize == 0) { ::free(mBegin); mBegin = NULL; diff --git a/emulator/opengl/shared/emugl/common/pod_vector.h b/emulator/opengl/shared/emugl/common/pod_vector.h index 22a8a1d..c4e184b 100644 --- a/emulator/opengl/shared/emugl/common/pod_vector.h +++ b/emulator/opengl/shared/emugl/common/pod_vector.h @@ -73,12 +73,10 @@ protected: const void* end() const { return mEnd; } void* itemAt(size_t pos, size_t itemSize) { - const size_t kMaxCapacity = SIZE_MAX / itemSize; return mBegin + pos * itemSize; } const void* itemAt(size_t pos, size_t itemSize) const { - const size_t kMaxCapacity = SIZE_MAX / itemSize; return mBegin + pos * itemSize; } -- cgit v1.1