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:
parent
bde004dcd0
commit
19fc216767
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue