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
This commit is contained in:
Eli Collins 2010-12-12 02:20:15 +00:00
parent bde004dcd0
commit 19fc216767
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -75,7 +75,8 @@
* @return returns the address where the symbol is loaded in memory,
* <code>NULL</code> 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;