--- old/src/java.desktop/unix/native/libawt/awt/awt_LoadLibrary.c 2018-09-30 07:52:56.503000000 +0530 +++ new/src/java.desktop/unix/native/libawt/awt/awt_LoadLibrary.c 2018-09-30 07:52:56.231000000 +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, '/');