I think that he means ‘d3dhal.h.’
I’m not familiar with ‘d3dhal.h’ (assuming that’s the file you mean), but
it’s quite possible that it or something it includes is controlling its own
#pragmas, though I’d bet against it enabling/defaulting this particular one.
In any case, you might want to take a look.
Good luck,
mm
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Sarbojit Sarkar
Sent: Thursday, November 18, 2010 4:38 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] [NTDEV]How to disable particular warning in WDK for
server 2000 build.
In my driver’s main header file. But I am getting warning in already
existing header file i.e. “dednthal.h”. Do I need to add #pragma into this
file? If I remove #pragma from my program, then no. of warnings are getting
increased. It seems for some warnings it is working for some file but not
for all files.
On Thu, Nov 18, 2010 at 2:52 PM, Deepak Gupta wrote:
Which header file it is?
Regards
Deepak
On Thu, Nov 18, 2010 at 1:46 PM, Sarbojit Sarkar
wrote:
In header only.
On Thu, Nov 18, 2010 at 1:31 PM, Deepak Gupta wrote:
AFAIR, #pragma warning(disable: 4201) did the trick for me.
Where are you disabling the warning (in header where u have the structs or
in C/C++ file)
Regards
Deepak
On Thu, Nov 18, 2010 at 12:41 PM, Sarbojit Sarkar
wrote:
Hi,
I am trying to build my driver for server 2000 using WDK version
6001.17121 and it is giving warning in already existing header file
“warning C4201: nonstandard extension used : nameless struct/union” . I have
tried to disable warning using #pragma warning(disable: 4201) but it seems I
need to add some thing more here.
Please let me know if any other ways are there.
Note: I am able to build same code for all other version of OSes using WDK
version 7600.16385.1(it is not having 2000 build environment.).
/sarbojit
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer