Suppress warnings by gcc 9.1
This commit is contained in:
parent
27a59ca2c8
commit
1ca03dc4f7
@ -1907,7 +1907,7 @@ fill_lines(int num_traces, void **traces, int check_debuglink,
|
|||||||
uint32_t offset = __builtin_bswap32(arch->offset);
|
uint32_t offset = __builtin_bswap32(arch->offset);
|
||||||
/* fprintf(stderr,"%d: fat %d %x/%x %x/%x\n",__LINE__, i, mhp->cputype,mhp->cpusubtype, cputype,cpusubtype); */
|
/* fprintf(stderr,"%d: fat %d %x/%x %x/%x\n",__LINE__, i, mhp->cputype,mhp->cpusubtype, cputype,cpusubtype); */
|
||||||
if (mhp->cputype == cputype &&
|
if (mhp->cputype == cputype &&
|
||||||
(mhp->cpusubtype & ~CPU_SUBTYPE_MASK) == cpusubtype) {
|
(cpu_subtype_t)(mhp->cpusubtype & ~CPU_SUBTYPE_MASK) == cpusubtype) {
|
||||||
p = file + offset;
|
p = file + offset;
|
||||||
file = p;
|
file = p;
|
||||||
header = (struct LP(mach_header) *)p;
|
header = (struct LP(mach_header) *)p;
|
||||||
@ -1980,9 +1980,9 @@ found_mach_header:
|
|||||||
{
|
{
|
||||||
struct symtab_command *cmd = (struct symtab_command *)lcmd;
|
struct symtab_command *cmd = (struct symtab_command *)lcmd;
|
||||||
struct LP(nlist) *nl = (struct LP(nlist) *)(file + cmd->symoff);
|
struct LP(nlist) *nl = (struct LP(nlist) *)(file + cmd->symoff);
|
||||||
char *strtab = file + cmd->stroff, *sname;
|
char *strtab = file + cmd->stroff, *sname = 0;
|
||||||
uint32_t j;
|
uint32_t j;
|
||||||
uintptr_t saddr;
|
uintptr_t saddr = 0;
|
||||||
/* kprintf("[%2d]: %x/symtab %p\n", i, cmd->cmd, p); */
|
/* kprintf("[%2d]: %x/symtab %p\n", i, cmd->cmd, p); */
|
||||||
for (j = 0; j < cmd->nsyms; j++) {
|
for (j = 0; j < cmd->nsyms; j++) {
|
||||||
uintptr_t symsize, d;
|
uintptr_t symsize, d;
|
||||||
|
7
io.c
7
io.c
@ -10972,6 +10972,7 @@ static int
|
|||||||
nogvl_fcopyfile(struct copy_stream_struct *stp)
|
nogvl_fcopyfile(struct copy_stream_struct *stp)
|
||||||
{
|
{
|
||||||
off_t cur, ss = 0;
|
off_t cur, ss = 0;
|
||||||
|
const off_t src_offset = stp->src_offset;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (stp->copy_length >= (off_t)0) {
|
if (stp->copy_length >= (off_t)0) {
|
||||||
@ -10987,7 +10988,7 @@ nogvl_fcopyfile(struct copy_stream_struct *stp)
|
|||||||
if (lseek(stp->dst_fd, 0, SEEK_CUR) > (off_t)0) /* if dst IO was already written */
|
if (lseek(stp->dst_fd, 0, SEEK_CUR) > (off_t)0) /* if dst IO was already written */
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (stp->src_offset > (off_t)0) {
|
if (src_offset > (off_t)0) {
|
||||||
off_t r;
|
off_t r;
|
||||||
|
|
||||||
/* get current offset */
|
/* get current offset */
|
||||||
@ -10999,7 +11000,7 @@ nogvl_fcopyfile(struct copy_stream_struct *stp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
r = lseek(stp->src_fd, stp->src_offset, SEEK_SET);
|
r = lseek(stp->src_fd, src_offset, SEEK_SET);
|
||||||
if (r < (off_t)0 && errno) {
|
if (r < (off_t)0 && errno) {
|
||||||
stp->error_no = errno;
|
stp->error_no = errno;
|
||||||
return 1;
|
return 1;
|
||||||
@ -11012,7 +11013,7 @@ nogvl_fcopyfile(struct copy_stream_struct *stp)
|
|||||||
|
|
||||||
if (ret == 0) { /* success */
|
if (ret == 0) { /* success */
|
||||||
stp->total = ss;
|
stp->total = ss;
|
||||||
if (stp->src_offset > (off_t)0) {
|
if (src_offset > (off_t)0) {
|
||||||
off_t r;
|
off_t r;
|
||||||
errno = 0;
|
errno = 0;
|
||||||
/* reset offset */
|
/* reset offset */
|
||||||
|
@ -418,7 +418,7 @@ VALUE
|
|||||||
rb_suppress_tracing(VALUE (*func)(VALUE), VALUE arg)
|
rb_suppress_tracing(VALUE (*func)(VALUE), VALUE arg)
|
||||||
{
|
{
|
||||||
volatile int raised;
|
volatile int raised;
|
||||||
VALUE result = Qnil;
|
volatile VALUE result = Qnil;
|
||||||
rb_execution_context_t *const ec = GET_EC();
|
rb_execution_context_t *const ec = GET_EC();
|
||||||
rb_vm_t *const vm = rb_ec_vm_ptr(ec);
|
rb_vm_t *const vm = rb_ec_vm_ptr(ec);
|
||||||
enum ruby_tag_type state;
|
enum ruby_tag_type state;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user