Mercurial > hg > graal-jvmci-8
diff agent/src/os/linux/LinuxDebuggerLocal.c @ 12329:f2512d89ad0c
8025613: clang: remove -Wno-unused-value
Reviewed-by: iveresov
author | twisti |
---|---|
date | Sat, 28 Sep 2013 12:42:22 -0700 |
parents | 96bd4772ec62 |
children | d06b64fc150f |
line wrap: on
line diff
--- a/agent/src/os/linux/LinuxDebuggerLocal.c Sat Sep 28 12:32:10 2013 +0400 +++ b/agent/src/os/linux/LinuxDebuggerLocal.c Sat Sep 28 12:42:22 2013 -0700 @@ -29,6 +29,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> +#include <stdlib.h> #include <string.h> #include <limits.h> @@ -80,7 +81,7 @@ (JNIEnv *env, jclass cls) { jclass listClass; - if (init_libproc(getenv("LIBSAPROC_DEBUG")) != true) { + if (init_libproc(getenv("LIBSAPROC_DEBUG") != NULL) != true) { THROW_NEW_DEBUGGER_EXCEPTION("can't initialize libproc"); }