diff options
| author | Thomas Stalder <git@netsolux.ch> | 2016-11-13 11:45:55 +0100 |
|---|---|---|
| committer | Thomas Stalder <git@netsolux.ch> | 2016-11-13 11:45:55 +0100 |
| commit | 4af25aed928491158d18b9f3209388f61007fffd (patch) | |
| tree | 35a4592e6a1a2a52b91023c4514310b5c9c70dcb /tccrun.c | |
| parent | 59216d3db0bbf8c213124587c5549dc6025f2af2 (diff) | |
| download | tinycc-4af25aed928491158d18b9f3209388f61007fffd.tar.gz tinycc-4af25aed928491158d18b9f3209388f61007fffd.tar.bz2 | |
remove warnings
Diffstat (limited to 'tccrun.c')
| -rw-r--r-- | tccrun.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -275,10 +275,9 @@ static void set_pages_executable(void *ptr, unsigned long length) static void *win64_add_function_table(TCCState *s1) { void *p = NULL; - int r; if (s1->uw_pdata) { p = (void*)s1->uw_pdata->sh_addr; - r = RtlAddFunctionTable( + RtlAddFunctionTable( (RUNTIME_FUNCTION*)p, s1->uw_pdata->data_offset / sizeof (RUNTIME_FUNCTION), text_section->sh_addr @@ -798,7 +797,7 @@ static TCCSyms tcc_syms[] = { { NULL, NULL }, }; -ST_FUNC void *dlsym(int flag, const char *symbol) +ST_FUNC void *dlsym(void *handle, const char *symbol) { TCCSyms *p; p = tcc_syms; |
