[PATCH] Fix uninitialized variable with wrong type

Yuriy Skalko yuriy.skalko at gmail.com
Wed Sep 9 19:42:59 UTC 2020


> I meant,
> if what you done is correct, then also the call in ForkedCalls.cpp should be 
> corrected.
> 
> Both places refer to WIN32 anyway.
> 
>         Kornel


Since pclose (Unix) returns signed int and GetExitCodeProcess (Windows)
returns unsigned DWORD, and then result is compared with -1 in common
branch, now I don't see clean way to get rid of the warning in this mix
of conditional compilation branches. Let's leave as it is now.

There is similar mix of signed/unsigned in ForkedCalls.cpp (setRetValue
call) but without compiler warnings.


Yuriy



More information about the lyx-devel mailing list