mirror of
https://github.com/openjdk/jdk7u.git
synced 2025-12-10 20:36:33 -06:00
8025613: clang: remove -Wno-unused-value
Reviewed-by: iveresov
This commit is contained in:
parent
6a661336cc
commit
06b6bd9d65
@ -23,6 +23,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <jni.h>
|
#include <jni.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include "libproc.h"
|
#include "libproc.h"
|
||||||
|
|
||||||
#if defined(x86_64) && !defined(amd64)
|
#if defined(x86_64) && !defined(amd64)
|
||||||
@ -73,7 +74,7 @@ JNIEXPORT void JNICALL Java_sun_jvm_hotspot_debugger_linux_LinuxDebuggerLocal_in
|
|||||||
(JNIEnv *env, jclass cls) {
|
(JNIEnv *env, jclass cls) {
|
||||||
jclass listClass;
|
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");
|
THROW_NEW_DEBUGGER_EXCEPTION("can't initialize libproc");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -27,6 +27,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/wait.h>
|
||||||
#include <sys/ptrace.h>
|
#include <sys/ptrace.h>
|
||||||
#include "libproc_impl.h"
|
#include "libproc_impl.h"
|
||||||
|
|
||||||
|
|||||||
@ -25,6 +25,7 @@
|
|||||||
#include "salibelf.h"
|
#include "salibelf.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
extern void print_debug(const char*,...);
|
extern void print_debug(const char*,...);
|
||||||
|
|
||||||
|
|||||||
@ -305,7 +305,7 @@ static struct symtab* build_symtab_from_build_id(Elf64_Nhdr *note)
|
|||||||
|
|
||||||
unsigned char *bytes
|
unsigned char *bytes
|
||||||
= (unsigned char*)(note+1) + note->n_namesz;
|
= (unsigned char*)(note+1) + note->n_namesz;
|
||||||
unsigned char *filename
|
char *filename
|
||||||
= (build_id_to_debug_filename (note->n_descsz, bytes));
|
= (build_id_to_debug_filename (note->n_descsz, bytes));
|
||||||
|
|
||||||
fd = pathmap_open(filename);
|
fd = pathmap_open(filename);
|
||||||
|
|||||||
@ -4713,7 +4713,7 @@ void Assembler::adcq(Register dst, Address src) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Assembler::adcq(Register dst, Register src) {
|
void Assembler::adcq(Register dst, Register src) {
|
||||||
(int) prefixq_and_encode(dst->encoding(), src->encoding());
|
(void) prefixq_and_encode(dst->encoding(), src->encoding());
|
||||||
emit_arith(0x13, 0xC0, dst, src);
|
emit_arith(0x13, 0xC0, dst, src);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4768,7 +4768,7 @@ void Assembler::andq(Register dst, Address src) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Assembler::andq(Register dst, Register src) {
|
void Assembler::andq(Register dst, Register src) {
|
||||||
(int) prefixq_and_encode(dst->encoding(), src->encoding());
|
(void) prefixq_and_encode(dst->encoding(), src->encoding());
|
||||||
emit_arith(0x23, 0xC0, dst, src);
|
emit_arith(0x23, 0xC0, dst, src);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user