--- old/src/java.desktop/unix/native/libawt/awt/awt_LoadLibrary.c 2018-11-26 16:07:32.650621181 +0530 +++ new/src/java.desktop/unix/native/libawt/awt/awt_LoadLibrary.c 2018-11-26 16:07:32.378757181 +0530 @@ -121,7 +121,8 @@ /* 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, '/');