found it.
inside ntddk.h I found the following:
#pragma warning(disable:4200)
typedef struct _SCATTER_GATHER_LIST {
ULONG NumberOfElements;
ULONG_PTR Reserved;
SCATTER_GATHER_ELEMENT Elements;
} SCATTER_GATHER_LIST, *PSCATTER_GATHER_LIST;
#pragma warning(default:4200)
it disables the warning, not caring that i already did so, and after the
struct declaration, it reverts the warning level for 4200 back to default.
the default being that the warning is enabled.
the warning level should be pushed and popped, because that would be the
clean solution. the funny thing is that in some places in ntddk.h they do
this.
IMO this is incorrect behavior, though i doubt that anyone really cares
enough to change this.
thanks for your time.
kind regards,
Bruno.
“Gennady Mayko” wrote in message
news:xxxxx@ntdev…
>
> “Bruno van Dooren” wrote in message
> news:xxxxx@ntdev…
>> Hi all,
>>
>> i have been staring at this problem this entire evening, but to no avail.
>>
>> in my header i have the following
>>
>> #pragma warning(push)
> –
> Although you save current level 4 of the warnings, you still keep it the
> same.
> Use #pragma warning(push,3) to set level 3 of the warnings while compiling
> DDK headers.
>
> Regards,
> Gennady Mayko.
>
>
>