hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1044755 - in /hadoop/common/trunk: CHANGES.txt src/native/src/org_apache_hadoop.h
Date Sun, 12 Dec 2010 02:20:15 GMT
Author: eli
Date: Sun Dec 12 02:20:15 2010
New Revision: 1044755

URL: http://svn.apache.org/viewvc?rev=1044755&view=rev
Log:
HADOOP-7059. Remove "unused" warning in native code. Contributed by Noah Watkins

Modified:
    hadoop/common/trunk/CHANGES.txt
    hadoop/common/trunk/src/native/src/org_apache_hadoop.h

Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=1044755&r1=1044754&r2=1044755&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Sun Dec 12 02:20:15 2010
@@ -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

Modified: hadoop/common/trunk/src/native/src/org_apache_hadoop.h
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/native/src/org_apache_hadoop.h?rev=1044755&r1=1044754&r2=1044755&view=diff
==============================================================================
--- hadoop/common/trunk/src/native/src/org_apache_hadoop.h (original)
+++ hadoop/common/trunk/src/native/src/org_apache_hadoop.h Sun Dec 12 02:20:15 2010
@@ -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;



Mime
View raw message