Hi,

 

When I build tinycc on Windows (both 32/64 bit).

 

I always get this warning:

 

../tcc.c:136:39: warning: passing argument 3 of 'spawnvp' from incompatible
pointer type [-Wincompatible-pointer-types]

     int ret = spawnvp(P_NOWAIT, prog, (const char *const*)argv);

 

Looking a spawnvp documentation from Microsoft, I get:

 

This POSIX function is deprecated. Use the ISO C++ conformant spawnvp
instead.

 

So I replaced spawnvp by _spawnvp and no more warning when using mingw32/64
gcc compilers.

 

Please Windows maintainer (if any), can you consider this very simple
change?

 

Christian

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to