[STORAHCI] Fix MSVC "uninitialized local variable" error (C4700) (#828)

See also PR #821.
This commit is contained in:
Katayama Hirofumi MZ 2018-08-30 07:50:06 +09:00 committed by Hermès BÉLUSCA - MAÏTO
parent 6c3b7644ef
commit 33fc7bf316

View file

@ -1480,6 +1480,12 @@ AhciProcessSrb (
* @param PortExtension
*
*/
#ifdef _MSC_VER // avoid MSVC C4700
#pragma warning(push)
#pragma warning(disable: 4700)
#endif
VOID
AhciActivatePort (
__in PAHCI_PORT_EXTENSION PortExtension
@ -1529,6 +1535,10 @@ AhciActivatePort (
return;
}// -- AhciActivatePort();
#ifdef _MSC_VER // avoid MSVC C4700
#pragma warning(pop)
#endif
/**
* @name AhciProcessIO
* @implemented