Prefast and IoSetCompletionRoutine

I ran prefast on my legacy project and I’m getting the following error in
the macro IoSetCompletionRoutine ntifs.h.

warning 314: Incorrect order of operations: bitwise-or has higher
precedence than the conditional-expression operator. Add parenthesies to
clarify intent.

Only happens in the debug build, the problem is with the ASSERT statement.

Ken

Ken,

This is a known issue that has been addressed in future versions of the IFSKit.

Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no rights.


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Ken Galipeau
Sent: Thursday, July 15, 2004 9:56 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Prefast and IoSetCompletionRoutine

I ran prefast on my legacy project and I’m getting the following error in the macro IoSetCompletionRoutine ntifs.h.

warning 314: Incorrect order of operations:? bitwise-or has higher precedence than the conditional-expression operator.? Add parenthesies to clarify intent.

Only happens in the debug build, the problem is with the ASSERT statement.

Ken


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

That’s what I figured. But thought I’d let someone know.

Is there an ‘offical’ corrected line your could send me in the mean time?

Thanks,
Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Neal Christiansen
Sent: Thursday, July 15, 2004 1:04 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Prefast and IoSetCompletionRoutine

Ken,

This is a known issue that has been addressed in future versions of the
IFSKit.

Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no rights.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ken Galipeau
Sent: Thursday, July 15, 2004 9:56 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Prefast and IoSetCompletionRoutine

I ran prefast on my legacy project and I’m getting the following error in
the macro IoSetCompletionRoutine ntifs.h.

warning 314: Incorrect order of operations:? bitwise-or has higher
precedence than the conditional-expression operator.? Add parenthesies to
clarify intent.

Only happens in the debug build, the problem is with the ASSERT statement.

Ken


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@legato.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Ken,

This is what the ASSERT will look like when the Srv03 SP1 IFSKit is released.

ASSERT( ((Success) | (Error) | (Cancel)) ? (Routine) != NULL : TRUE );

Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided "AS IS" with no warranties, and confers no rights.


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Ken Galipeau
Sent: Thursday, July 15, 2004 10:25 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Prefast and IoSetCompletionRoutine

That's what I figured. But thought I'd let someone know.
Is there an 'offical' corrected line your could send me in the mean time?
Thanks,
Ken
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Neal Christiansen
Sent: Thursday, July 15, 2004 1:04 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Prefast and IoSetCompletionRoutine
Ken,
This is a known issue that has been addressed in future versions of the IFSKit.
Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided "AS IS" with no warranties, and confers no rights.


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Ken Galipeau
Sent: Thursday, July 15, 2004 9:56 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Prefast and IoSetCompletionRoutine
I ran prefast on my legacy project and I'm getting the following error in the macro IoSetCompletionRoutine ntifs.h.
???????? warning 314: Incorrect order of operations:? bitwise-or has higher precedence than the conditional-expression operator.? Add parenthesies to clarify intent.
Only happens in the debug build, the problem is with the ASSERT statement.
Ken


Questions? First check the IFS FAQ at The NT Insider:Windows NT Virtual Memory (Part I)
You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the IFS FAQ at The NT Insider:Windows NT Virtual Memory (Part I)
You are currently subscribed to ntfsd as: xxxxx@legato.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the IFS FAQ at The NT Insider:Windows NT Virtual Memory (Part I)

You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com