From 19fc21676778e009d14ad4725ace7aa53a9a549c Mon Sep 17 00:00:00 2001 From: Eli Collins Date: Sun, 12 Dec 2010 02:20:15 +0000 Subject: [PATCH] HADOOP-7059. Remove "unused" warning in native code. Contributed by Noah Watkins git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1044755 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 2 ++ src/native/src/org_apache_hadoop.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 93e3c80a98..15adf376de 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -34,6 +34,8 @@ Trunk (unreleased changes) HADOOP-7061. unprecise javadoc for CompressionCodec. (Jingguo Yao via eli) + HADOOP-7059. Remove "unused" warning in native code. (Noah Watkins via eli) + OPTIMIZATIONS BUG FIXES diff --git a/src/native/src/org_apache_hadoop.h b/src/native/src/org_apache_hadoop.h index c1513eeb8a..7a777c2f4f 100644 --- a/src/native/src/org_apache_hadoop.h +++ b/src/native/src/org_apache_hadoop.h @@ -75,7 +75,8 @@ * @return returns the address where the symbol is loaded in memory, * NULL on error. */ -static void *do_dlsym(JNIEnv *env, void *handle, const char *symbol) { +static __attribute__ ((unused)) +void *do_dlsym(JNIEnv *env, void *handle, const char *symbol) { if (!env || !handle || !symbol) { THROW(env, "java/lang/InternalError", NULL); return NULL;