History

remove warnings

Thomas Stalder committed 10 years ago

Commit 4af25ae1 parent 59216d32 files · +3 −4Browse files

Unified · Split

2 files
  1. tcc.h +1 −1
  2. tccrun.c +2 −3
tcc.h+1−1
@@ -1527,7 +1527,7 @@ ST_FUNC void pe_add_unwind_data(unsigned start, unsigned end, unsigned stack); · 1526 unmodified lines
15271527 ST_FUNC void *dlopen(const char *filename, int flag);
15281528 ST_FUNC void dlclose(void *p);
15291529 ST_FUNC const char *dlerror(void);
1530−ST_FUNC void *dlsym(int flag, const char *symbol);
1530+ST_FUNC void *dlsym(void *handle, const char *symbol);
15311531 #endif
15321532 #ifdef CONFIG_TCC_BACKTRACE
15331533 ST_DATA int rt_num_callers;
tccrun.c+2−3
@@ -275,10 +275,9 @@ static void set_pages_executable(void *ptr, unsigned long length) · 274 unmodified lines
275275 static void *win64_add_function_table(TCCState *s1)
276276 {
277277 void *p = NULL;
278− int r;
279278 if (s1->uw_pdata) {
280279 p = (void*)s1->uw_pdata->sh_addr;
281− r = RtlAddFunctionTable(
280+ RtlAddFunctionTable(
282281 (RUNTIME_FUNCTION*)p,
283282 s1->uw_pdata->data_offset / sizeof (RUNTIME_FUNCTION),
284283 text_section->sh_addr
@@ -798,7 +797,7 @@ static TCCSyms tcc_syms[] = { · 513 unmodified lines
798797 { NULL, NULL },
799798 };
800799
801−ST_FUNC void *dlsym(int flag, const char *symbol)
800+ST_FUNC void *dlsym(void *handle, const char *symbol)
802801 {
803802 TCCSyms *p;
804803 p = tcc_syms;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t