mirror of
https://github.com/reactos/reactos.git
synced 2025-05-19 09:10:56 +00:00
[STORAHCI] Fix MSVC "uninitialized local variable" error (C4700) (#828)
See also PR #821.
This commit is contained in:
parent
6c3b7644ef
commit
33fc7bf316
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue