[ros-dev] [ros-diffs] [mnordell] 57288: Add comment explaining initialization.

Thomas Faber thfabba at gmx.de
Sun Sep 16 23:00:40 UTC 2012


On 2012-09-13 02:52, mnordell at svn.reactos.org wrote:
> --- trunk/reactos/subsystems/csr/csrsrv/process.c [iso-8859-1] (original)
> +++ trunk/reactos/subsystems/csr/csrsrv/process.c [iso-8859-1] Thu Sep 13 00:52:12 2012
> @@ -1211,7 +1211,7 @@
>       BOOLEAN FirstTry;
>       ULONG i;
>       PCSR_SERVER_DLL ServerDll;
> -    ULONG Result = 0;
> +    ULONG Result = 0; /* Intentionally invalid enumeratee to silence compiler warning */
>
>       /* Acquire process lock */
>       CsrAcquireProcessLock();

Frankly, I still don't understand it :D

As I recall, this warning isn't a false positive, is it? Thus one would
logically "fix", not "silence" it.



More information about the Ros-dev mailing list