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
132#include <process.h>132#include <process.h>
133static int execvp_win32(const char *prog, char **argv)133static int execvp_win32(const char *prog, char **argv)
134{134{
135 int ret = spawnvp(P_NOWAIT, prog, (char *const*)argv);135 int ret = spawnvp(P_NOWAIT, prog, (const char *const*)argv);
136 if (-1 == ret)136 if (-1 == ret)
137 return ret;137 return ret;
138 cwait(&ret, ret, WAIT_CHILD);138 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
10@if _%1_==_x64_ shift /1 && goto x86_6410@if _%1_==_x64_ shift /1 && goto x86_64
11 11
12@set target=-DTCC_TARGET_PE -DTCC_TARGET_I38612@set target=-DTCC_TARGET_PE -DTCC_TARGET_I386
13@set CC=gcc -Os -s -fno-strict-aliasing13@set CC=gcc -Os -s -fno-strict-aliasing -Wno-incompatible-pointer-types
14@if _%1_==_debug_ set CC=gcc -g -ggdb14@if _%1_==_debug_ set CC=gcc -g -ggdb
15@set P=3215@set P=32
16@goto tools16@goto tools
17 17
18:x86_6418:x86_64
19@set target=-DTCC_TARGET_PE -DTCC_TARGET_X86_6419@set target=-DTCC_TARGET_PE -DTCC_TARGET_X86_64
20@set CC=x86_64-w64-mingw32-gcc -Os -s -fno-strict-aliasing20@set CC=x86_64-w64-mingw32-gcc -Os -s -fno-strict-aliasing -Wno-incompatible-pointer-types
21@if _%1_==_debug_ set CC=x86_64-w64-mingw32-gcc -g -ggdb21@if _%1_==_debug_ set CC=x86_64-w64-mingw32-gcc -g -ggdb
22@set P=6422@set P=64
23@goto tools23@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