[PATCH] Fix uninitialized variable with wrong type

Kornel Benko kornel at lyx.org
Tue Sep 8 07:56:13 UTC 2020


Am Tue, 8 Sep 2020 09:59:56 +0300
schrieb Yuriy Skalko <yuriy.skalko at gmail.com>:

> > 
> > There is also GetExitCodeProcess() in src/support/ForkedCalls.cpp.
> > 
> >         Kornel  
> 
> OK, so `pret` should be DWORD. But then -1 can be assigned to it (I
> assume that it is safe for all bits set for unsigned type, but still get
> warnings during compilation). Should it be UINT32_MAX to get rid of this
> warning?
> 
> 
> Yuriy
> 

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200908/db134ec0/attachment.asc>


More information about the lyx-devel mailing list