forked from Mirrors/tinycc
Silence FIXME and compiler warning
parent
ceccd3ead3
commit
8e4d64be2f
2
tcc.c
2
tcc.c
|
@ -132,7 +132,7 @@ static void help(void)
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
static int execvp_win32(const char *prog, char **argv)
|
static int execvp_win32(const char *prog, char **argv)
|
||||||
{
|
{
|
||||||
int ret = spawnvp(P_NOWAIT, prog, (const char *const*)argv);
|
int ret = spawnvp(P_NOWAIT, prog, (char *const*)argv);
|
||||||
if (-1 == ret)
|
if (-1 == ret)
|
||||||
return ret;
|
return ret;
|
||||||
cwait(&ret, ret, WAIT_CHILD);
|
cwait(&ret, ret, WAIT_CHILD);
|
||||||
|
|
3
tccelf.c
3
tccelf.c
|
@ -573,6 +573,9 @@ ST_FUNC void relocate_section(TCCState *s1, Section *s)
|
||||||
goto output_file;
|
goto output_file;
|
||||||
write16le(ptr, read16le(ptr) + val - addr);
|
write16le(ptr, read16le(ptr) + val - addr);
|
||||||
break;
|
break;
|
||||||
|
case R_386_RELATIVE:
|
||||||
|
/* do nothing */
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
fprintf(stderr,"FIXME: handle reloc type %d at %x [%p] to %x\n",
|
fprintf(stderr,"FIXME: handle reloc type %d at %x [%p] to %x\n",
|
||||||
type, (unsigned)addr, ptr, (unsigned)val);
|
type, (unsigned)addr, ptr, (unsigned)val);
|
||||||
|
|
Loading…
Reference in New Issue