From 4af5d6a2311a8682a36da2a73d9105dd3666385a Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 27 Oct 2016 15:06:59 +1100 Subject: Suppress warning message from Code Analysis for code that does work. --- win32/ScintillaWin.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'win32') diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 3de78d1d4..931ccd816 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -1349,6 +1349,12 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam // when there's a message posted. So, several times a second, we stop and let // the low priority events have a turn (after which the timer will fire again). + // Suppress a warning from Code Analysis that the GetTickCount function + // wraps after 49 days. The WM_TIMER will kick off another SC_WIN_IDLE + // after the wrap. +#ifdef _MSC_VER +#pragma warning(suppress: 28159) +#endif DWORD dwCurrent = GetTickCount(); DWORD dwStart = wParam ? static_cast(wParam) : dwCurrent; const DWORD maxWorkTime = 50; -- cgit v1.2.3