Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MSVC warning C26495: ZwQuerySystemInformation, m_MetaDataObjectValue uninitialized #3843

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Modules/Core/Common/include/itkMemoryUsageObserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ class ITKCommon_EXPORT WindowsMemoryUsageObserver : public MemoryUsageObserverBa
using PZwQuerySystemInformation = NTSTATUS(WINAPI *)(UINT, PVOID, ULONG, PULONG);

// handle ntdll.dll library
HMODULE m_hNTLib;
HMODULE m_hNTLib{ nullptr };
// Windows native API function to query system information
PZwQuerySystemInformation ZwQuerySystemInformation;
PZwQuerySystemInformation ZwQuerySystemInformation{ nullptr };
# endif // defined(SUPPORT_TOOLHELP32)
};
#endif // defined(WIN32) || defined(_WIN32)
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkMetaDataObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class ITK_TEMPLATE_EXPORT MetaDataObject : public MetaDataObjectBase
* A variable to store this derived type.
* \author Hans J. Johnson
*/
MetaDataObjectType m_MetaDataObjectValue;
MetaDataObjectType m_MetaDataObjectValue{};
};

/**
Expand Down