mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[STORAHCI] Fix MSVC "uninitialized local variable" error (C4700) (#828)
See also PR #821.
This commit is contained in:
committed by
Hermès BÉLUSCA - MAÏTO
parent
6c3b7644ef
commit
33fc7bf316
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user