X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust-java-agent%2Fjni%2Fcommon%2Flttng_ust_context.c;fp=liblttng-ust-java-agent%2Fjni%2Fcommon%2Flttng_ust_context.c;h=51b7c8e5f0617c295b1aff129eb35f49113404d0;hb=2208d8b5689264e35ed0a660d8c3c82021cc0367;hp=95679f5358bd3b8492a3c02a6615285aefd581e6;hpb=c53279a3e7796da67c5ad8d5e5657bf03def2dcb;p=lttng-ust.git diff --git a/liblttng-ust-java-agent/jni/common/lttng_ust_context.c b/liblttng-ust-java-agent/jni/common/lttng_ust_context.c index 95679f53..51b7c8e5 100644 --- a/liblttng-ust-java-agent/jni/common/lttng_ust_context.c +++ b/liblttng-ust-java-agent/jni/common/lttng_ust_context.c @@ -311,7 +311,7 @@ static void get_value_cb(struct lttng_ust_ctx_field *field, * so we create and register a corresponding provider on the C side. */ JNIEXPORT jlong JNICALL Java_org_lttng_ust_agent_context_LttngContextApi_registerProvider(JNIEnv *env, - jobject jobj, + jobject jobj __attribute__((unused)), jstring provider_name) { jboolean iscopy; @@ -367,8 +367,8 @@ error_jstr: * Called from the Java side when an application unregisters a context retriever, * so we unregister and delete the corresponding provider on the C side. */ -JNIEXPORT void JNICALL Java_org_lttng_ust_agent_context_LttngContextApi_unregisterProvider(JNIEnv *env, - jobject jobj, +JNIEXPORT void JNICALL Java_org_lttng_ust_agent_context_LttngContextApi_unregisterProvider(JNIEnv *env __attribute__((unused)), + jobject jobj __attribute__((unused)), jlong provider_ref) { struct lttng_ust_context_provider *provider =