History

Revert spawnvp param cast and use `no-incompatible-pointer-types` in build-tcc.bat

Vlad Vissoultchev committed 10 years ago

Commit 712eca41 parent 9d778c72 files · +3 −3Browse files

Unified · Split

2 files
  1. tcc.c +1 −1
  2. win32/build-tcc.bat +2 −2
tcc.c+1−1
@@ -132,7 +132,7 @@ static void help(void) · 131 unmodified lines
132132 #include <process.h>
133133 static int execvp_win32(const char *prog, char **argv)
134134 {
135− int ret = spawnvp(P_NOWAIT, prog, (char *const*)argv);
135+ int ret = spawnvp(P_NOWAIT, prog, (const char *const*)argv);
136136 if (-1 == ret)
137137 return ret;
138138 cwait(&ret, ret, WAIT_CHILD);
win32/build-tcc.bat+2−2
@@ -10,14 +10,14 @@ echo>..\config.h #define TCC_VERSION "%VERSION%" · 9 unmodified lines
1010 @if _%1_==_x64_ shift /1 && goto x86_64
1111
1212 @set target=-DTCC_TARGET_PE -DTCC_TARGET_I386
13−@set CC=gcc -Os -s -fno-strict-aliasing
13+@set CC=gcc -Os -s -fno-strict-aliasing -Wno-incompatible-pointer-types
1414 @if _%1_==_debug_ set CC=gcc -g -ggdb
1515 @set P=32
1616 @goto tools
1717
1818 :x86_64
1919 @set target=-DTCC_TARGET_PE -DTCC_TARGET_X86_64
20−@set CC=x86_64-w64-mingw32-gcc -Os -s -fno-strict-aliasing
20+@set CC=x86_64-w64-mingw32-gcc -Os -s -fno-strict-aliasing -Wno-incompatible-pointer-types
2121 @if _%1_==_debug_ set CC=x86_64-w64-mingw32-gcc -g -ggdb
2222 @set P=64
2323 @goto tools

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