Skip to content

Commit

Permalink
Fix ARM64 Debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimecbernardo committed Jan 14, 2025
1 parent d556ccb commit d899082
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/modules/ZoomIt/ZoomIt/Zoomit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,15 @@ void OutputDebug(const TCHAR* format, ...)
TCHAR msg[1024];
va_list va;

#ifdef _MSC_VER
// For some reason, ARM64 Debug builds causes an analyzer error on va_start: "error C26492: Don't use const_cast to cast away const or volatile (type.3)."
#pragma warning(push)
#pragma warning(disable : 26492)
#endif
va_start(va, format);
#ifdef _MSC_VER
#pragma warning(pop)
#endif
_vstprintf_s(msg, format, va);
va_end(va);

Expand Down

0 comments on commit d899082

Please sign in to comment.