am fc545733: Merge "Remove unused variables and functions, don\'t warn about unused parameters"
* commit 'fc54573373ff965aa40cccdc1ab11c1c880c8930': Remove unused variables and functions, don't warn about unused parameters
This commit is contained in:
@@ -58,9 +58,9 @@ class AutoBufferPointer {
|
||||
public:
|
||||
AutoBufferPointer(JNIEnv* env, jobject nioBuffer, jboolean commit);
|
||||
~AutoBufferPointer();
|
||||
|
||||
|
||||
void* pointer() const { return fPointer; }
|
||||
|
||||
|
||||
private:
|
||||
JNIEnv* fEnv;
|
||||
void* fPointer;
|
||||
|
||||
@@ -895,8 +895,6 @@ static JNINativeMethod gMethods[] = {
|
||||
{"setNextMediaPlayer", "(Landroid/media/MediaPlayer;)V", (void *)android_media_MediaPlayer_setNextMediaPlayer},
|
||||
};
|
||||
|
||||
static const char* const kClassPathName = "android/media/MediaPlayer";
|
||||
|
||||
// This function only registers the native methods
|
||||
static int register_android_media_MediaPlayer(JNIEnv *env)
|
||||
{
|
||||
|
||||
@@ -509,8 +509,6 @@ static JNINativeMethod gMethods[] = {
|
||||
{"native_finalize", "()V", (void *)android_media_MediaRecorder_native_finalize},
|
||||
};
|
||||
|
||||
static const char* const kClassPathName = "android/media/MediaRecorder";
|
||||
|
||||
// This function only registers the native methods, and is called from
|
||||
// JNI_OnLoad in android_media_MediaPlayer.cpp
|
||||
int register_android_media_MediaRecorder(JNIEnv *env)
|
||||
|
||||
@@ -1174,8 +1174,6 @@ static JNINativeMethod gMtpPropertyGroupMethods[] = {
|
||||
(void *)android_mtp_MtpPropertyGroup_format_date_time},
|
||||
};
|
||||
|
||||
static const char* const kClassPathName = "android/mtp/MtpDatabase";
|
||||
|
||||
int register_android_mtp_MtpDatabase(JNIEnv *env)
|
||||
{
|
||||
jclass clazz;
|
||||
|
||||
@@ -417,8 +417,6 @@ static JNINativeMethod gMethods[] = {
|
||||
(void *)android_mtp_MtpDevice_import_file},
|
||||
};
|
||||
|
||||
static const char* const kClassPathName = "android/mtp/MtpDevice";
|
||||
|
||||
int register_android_mtp_MtpDevice(JNIEnv *env)
|
||||
{
|
||||
jclass clazz;
|
||||
|
||||
@@ -193,8 +193,6 @@ static JNINativeMethod gMethods[] = {
|
||||
{"native_remove_storage", "(I)V", (void *)android_mtp_MtpServer_remove_storage},
|
||||
};
|
||||
|
||||
static const char* const kClassPathName = "android/mtp/MtpServer";
|
||||
|
||||
int register_android_mtp_MtpServer(JNIEnv *env)
|
||||
{
|
||||
jclass clazz;
|
||||
|
||||
@@ -30,9 +30,6 @@
|
||||
namespace android {
|
||||
namespace filterfw {
|
||||
|
||||
// VBO attachment keys
|
||||
static const int kDefaultVboKey = 1;
|
||||
|
||||
static const char* s_default_vertex_shader_source_ =
|
||||
"attribute vec4 a_position;\n"
|
||||
"attribute vec2 a_texcoord;\n"
|
||||
@@ -55,10 +52,6 @@ static void GetTileCoords(const float* b, float x, float y, float* xt, float* yt
|
||||
*yt = w0 * b[1] + w1 * b[3] + w2 * b[5] + w3 * b[7];
|
||||
}
|
||||
|
||||
static inline float AdjustRatio(float current, float next) {
|
||||
return (current + next) / 2.0;
|
||||
}
|
||||
|
||||
// VertexAttrib implementation /////////////////////////////////////////////////
|
||||
ShaderProgram::VertexAttrib::VertexAttrib()
|
||||
: is_const(true),
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# files
|
||||
LOCAL_REL_DIR := core/jni
|
||||
|
||||
LOCAL_CFLAGS += -Wall -Werror
|
||||
LOCAL_CFLAGS += -Wall -Werror -Wno-unused-parameter
|
||||
|
||||
LOCAL_SRC_FILES += \
|
||||
$(LOCAL_REL_DIR)/com_android_server_AlarmManagerService.cpp \
|
||||
|
||||
@@ -408,6 +408,7 @@ static JNINativeMethod sMethods[] = {
|
||||
int register_android_server_hdmi_HdmiCecController(JNIEnv* env) {
|
||||
int res = jniRegisterNativeMethods(env, CLASS_PATH, sMethods, NELEM(sMethods));
|
||||
LOG_FATAL_IF(res < 0, "Unable to register native methods.");
|
||||
(void)res; // Don't scream about unused variable in the LOG_NDEBUG case
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -634,6 +634,7 @@ int register_android_server_tv_TvInputHal(JNIEnv* env) {
|
||||
int res = jniRegisterNativeMethods(env, "com/android/server/tv/TvInputHal",
|
||||
gTvInputHalMethods, NELEM(gTvInputHalMethods));
|
||||
LOG_FATAL_IF(res < 0, "Unable to register native methods.");
|
||||
(void)res; // Don't complain about unused variable in the LOG_NDEBUG case
|
||||
|
||||
jclass clazz;
|
||||
FIND_CLASS(clazz, "com/android/server/tv/TvInputHal");
|
||||
|
||||
Reference in New Issue
Block a user