diff options
author | Neil <nyamatongwe@gmail.com> | 2016-10-27 15:06:59 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2016-10-27 15:06:59 +1100 |
commit | 4af5d6a2311a8682a36da2a73d9105dd3666385a (patch) | |
tree | f03cc8f76f467776856a25f265610185d5d93dfa | |
parent | 36fc79cc7cdd454e87a949fc1e47464f5d713b25 (diff) | |
download | scintilla-mirror-4af5d6a2311a8682a36da2a73d9105dd3666385a.tar.gz |
Suppress warning message from Code Analysis for code that does work.
-rw-r--r-- | win32/ScintillaWin.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
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<DWORD>(wParam) : dwCurrent; const DWORD maxWorkTime = 50; |