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
1527ST_FUNC void *dlopen(const char *filename, int flag);1527ST_FUNC void *dlopen(const char *filename, int flag);
1528ST_FUNC void dlclose(void *p);1528ST_FUNC void dlclose(void *p);
1529ST_FUNC const char *dlerror(void);1529ST_FUNC const char *dlerror(void);
1530ST_FUNC void *dlsym(int flag, const char *symbol);1530ST_FUNC void *dlsym(void *handle, const char *symbol);
1531#endif1531#endif
1532#ifdef CONFIG_TCC_BACKTRACE1532#ifdef CONFIG_TCC_BACKTRACE
1533ST_DATA int rt_num_callers;1533ST_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
275static void *win64_add_function_table(TCCState *s1)275static void *win64_add_function_table(TCCState *s1)
276{276{
277 void *p = NULL;277 void *p = NULL;
278 int r;
279 if (s1->uw_pdata) {278 if (s1->uw_pdata) {
280 p = (void*)s1->uw_pdata->sh_addr;279 p = (void*)s1->uw_pdata->sh_addr;
281 r = RtlAddFunctionTable(280 RtlAddFunctionTable(
282 (RUNTIME_FUNCTION*)p,281 (RUNTIME_FUNCTION*)p,
283 s1->uw_pdata->data_offset / sizeof (RUNTIME_FUNCTION),282 s1->uw_pdata->data_offset / sizeof (RUNTIME_FUNCTION),
284 text_section->sh_addr283 text_section->sh_addr
@@ -798,7 +797,7 @@ static TCCSyms tcc_syms[] = { · 513 unmodified lines
798 { NULL, NULL },797 { NULL, NULL },
799};798};
800 799
801ST_FUNC void *dlsym(int flag, const char *symbol)800ST_FUNC void *dlsym(void *handle, const char *symbol)
802{801{
803 TCCSyms *p;802 TCCSyms *p;
804 p = tcc_syms;803 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