< prev index next >

src/java.desktop/unix/native/libawt/awt/awt_LoadLibrary.c

Print this page

        

@@ -119,11 +119,12 @@
 
     jvm = vm;
 
     /* Get address of this library and the directory containing it. */
     dladdr((void *)AWT_OnLoad, &dlinfo);
-    realpath((char *)dlinfo.dli_fname, buf);
+    char* res = realpath((char *)dlinfo.dli_fname, buf);
+    (void)res;
     len = strlen(buf);
     p = strrchr(buf, '/');
 
     /*
      * The code below is responsible for:
< prev index next >