Re: [Mingw-w64-public] fork is an inbuilt function?

2014-07-24 Thread Óscar Fuentes
lh_mouselh_mo...@126.com writes: EDIT: since C99, reaching the } that terminates the main function returns a value of 0. 'The returned value is undefined' is not true. If the return value is used(in the case of main(), the host environment cares about it), I already said that undefined

Re: [Mingw-w64-public] fork is an inbuilt function?

2014-07-23 Thread Ruben Van Boxem
2014-07-22 23:37 GMT+02:00 Ray Donnelly mingw.andr...@gmail.com: Hello, While porting msysGit to MSYS2/MinGW-w64 we ran into this: $ PATH=/mingw64/bin:$PATH gcc --version gcc.exe (Rev1, Built by MSYS2 project) 4.9.1 $ cat test.c #include unistd.h static inline pid_t fork(void); void

Re: [Mingw-w64-public] fork is an inbuilt function?

2014-07-23 Thread Ray Donnelly
Hi Ruben, Please take this in the friendly/jokey manner it is intended. This isn't the first time you corrected me on the return value from main when I'm making a test-case to demonstrate a compiler issue; I honestly couldn't care less and my goal is to use the minimum amount of characters and

Re: [Mingw-w64-public] fork is an inbuilt function?

2014-07-23 Thread Óscar Fuentes
Ray Donnelly mingw.andr...@gmail.com writes: Hi Ruben, Please take this in the friendly/jokey manner it is intended. This isn't the first time you corrected me on the return value from main when I'm making a test-case to demonstrate a compiler issue; I honestly couldn't care less and my

Re: [Mingw-w64-public] fork is an inbuilt function?

2014-07-23 Thread Ruben Van Boxem
2014-07-23 13:32 GMT+02:00 Óscar Fuentes o...@wanadoo.es: Ray Donnelly mingw.andr...@gmail.com writes: Hi Ruben, Please take this in the friendly/jokey manner it is intended. This isn't the first time you corrected me on the return value from main when I'm making a test-case to

Re: [Mingw-w64-public] fork is an inbuilt function?

2014-07-23 Thread Suresh Govindachar
On 7/23/2014 4:39 AM, Ruben Van Boxem wrote: 2014-07-23 13:32 GMT+02:00 Óscar Fuentes o...@wanadoo.es mailto:o...@wanadoo.es: Ray Donnelly mingw.andr...@gmail.com mailto:mingw.andr...@gmail.com writes: Hi Ruben, Please take this in the friendly/jokey manner it is

Re: [Mingw-w64-public] fork is an inbuilt function?

2014-07-23 Thread lh_mouse
; -- Best regards, lh_mouse 2014-07-24 - 发件人:Suresh Govindachar sgovindac...@yahoo.com 发送日期:2014-07-24 09:53 收件人:mingw-w64-public 抄送: 主题:Re: [Mingw-w64-public] fork is an inbuilt function? Well, I too was about to write

Re: [Mingw-w64-public] fork is an inbuilt function?

2014-07-23 Thread Óscar Fuentes
Suresh Govindachar sgovindac...@yahoo.com writes: This isn't the first time you corrected me on the return value from main when I'm making a test-case to demonstrate a compiler issue; I honestly couldn't care less and my goal is to use the minimum amount of characters

Re: [Mingw-w64-public] fork is an inbuilt function?

2014-07-23 Thread lh_mouse
:Re: [Mingw-w64-public] fork is an inbuilt function? Apart from what lh_mouse says about C++, in C if your function is declared to return an int and there is no return statement the returned value is undefined (not to be confused with undefined behavior, which only happens on this case if you *use

[Mingw-w64-public] fork is an inbuilt function?

2014-07-22 Thread Ray Donnelly
Hello, While porting msysGit to MSYS2/MinGW-w64 we ran into this: $ PATH=/mingw64/bin:$PATH gcc --version gcc.exe (Rev1, Built by MSYS2 project) 4.9.1 $ cat test.c #include unistd.h static inline pid_t fork(void); void main() {} $ PATH=/mingw64/bin:$PATH gcc test.c test.c:2:21: warning: