[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] spawnvp V.S. _spawnvp on Windows

From: Christian Jullien
Subject: [Tinycc-devel] spawnvp V.S. _spawnvp on Windows
Date: Mon, 16 May 2016 10:12:22 +0200



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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]