LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Please update winnt.h

Hello NI,

 

the second part of my earlier post here failed to get noticed so I dedicate an extra message for it Smiley Wink

 

When compiling (in CVI2015f1) with

 

#include <windows.h>

 

and extended warning level I receive the following warnings:

 

"winnt.h"(8780,19)    warning: cast from function call of type 'LONG64' (aka 'long long') to non-matching type 'PVOID' (aka 'void *')

"winnt.h"(8791,19)    warning: cast from function call of type 'LONG64' (aka 'long long') to non-matching type 'PVOID' (aka 'void *')

"winnt.h"(8802,19)    warning: cast from function call of type 'LONG64' (aka 'long long') to non-matching type 'PVOID' (aka 'void *')

 

My suggestion is to update the include file, thanks!

 

 

0 Kudos
Message 1 of 3
(4,218 Views)
Hi Wolfgang,

Your suggestion was not missed. We made a decision to not modify the Windows SDK headers at this time. Modifying the Windows SDK headers is considered more risky of a change, which is why we did not add that change to the patch.

Thanks,
Daniel Dorroh
National Instruments
0 Kudos
Message 2 of 3
(4,201 Views)

Is there a way to selectively silence these warnings? The code I inherited was being built without detailed warnings, and when I crank them up I find tons of casting issues to resolve, but I'd like to get a clean build which seems impossible with these windows header file warnings in the mix.

 

0 Kudos
Message 3 of 3
(2,252 Views)