Driver compilation error on AMD64

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I am getting an compilation error when building the driver for AMD64.

C:\WINDDK\3790.1830\inc\wnet\ntdef.h(328) : error C4235: nonstandard
extension used : '__unaligned' keyword not supported in this product

I have the following compilation flags set:

-----------------------------------------------------------------------------------------------------------------------

/nologo /MT /w /W0 /Z7 /Oi /Gy /I "amd64\\" /I "." /I "..\..\inc" /I
"..\..\..\inc" /I "C:\WINDDK\3790~1.183\inc\wnet" /I
"C:\WINDDK\3790~1.183\inc\ddk\wnet" /I
"C:\WINDDK\3790~1.183\inc\ddk\wdm\wnet" /I
"C:\WINDDK\3790~1.183\inc\crt"
/FI"C:\WINDDK\3790~1.183\inc\wnet\warning.h" /D "WINXPFRAMEWORK" /D
"_AMD64_" /D "AMD64" /D "_M_AMD64" /D CONDITION_HANDLING=1 /D NT_INST=0
/D _NT1X_=100 /D WINNT=1 /D _WIN32_WINNT=0x0502 /D WINVER=0x0502 /D
_WIN32_IE=0x0603 /D WIN32_LEAN_AND_MEAN=1 /D "_AMD64_SIMULATOR_PERF_"
/D "_SKIP_IF_SIMULATOR_" /D "_AMD64_SIMULATOR_" /D "_AMD64_WORKAROUND_"
/D DEVL=1 /D DBG=1 /D __BUILDMACHINE__=WinDDK /D "NDEBUG" /U "_MT"
/FR"Win32_Checked_x64/" /Fo"Win32_Checked_x64/" /Zl -cbstring /Wp64 /GF
/GS /EHa

--------------------------------------------------------------------------------------------------------------------

Am I missing something?

I appreciate any help on this.

.