a doubt

i get the prefast warning

caspydrv.c(1206) : warning 314: Incorrect order of operations: bitwise-or
has higher precedence than the conditional-expression operator. Add
parenthesies to clarify intent.
problem occurs in function ‘FnPassThrough’

the line is
IoSetCompletionRoutine( Irp,
FnPassThroughCompletion,
Ct,
TRUE,
TRUE,
TRUE);

in checked build.

THis warning disapperas in the free build with prefast.

why so?

IoSetCompletionRoutine is a macro and there is an ASSERT in that macro that
can trigger this warning. Microsoft has fixed this in the WDK.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply

“Bedanto” wrote in message news:xxxxx@ntfsd…
>i get the prefast warning
>
> caspydrv.c(1206) : warning 314: Incorrect order of operations: bitwise-or
> has higher precedence than the conditional-expression operator. Add
> parenthesies to clarify intent.
> problem occurs in function ‘FnPassThrough’
>
> the line is
> IoSetCompletionRoutine( Irp,
> FnPassThroughCompletion,
> Ct,
> TRUE,
> TRUE,
> TRUE);
>
>
> in checked build.
>
> THis warning disapperas in the free build with prefast.
>
> why so?
>