diff options
author | Neil <nyamatongwe@gmail.com> | 2013-10-18 16:39:43 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-10-18 16:39:43 +1100 |
commit | 49f6d05e574d93406e917eaceab4c2cae3c6b350 (patch) | |
tree | bb7ffe5ce58cdf23d59fc4b48334e3de60ecc45a /src | |
parent | a84ab365c949b105697dccc79521831307a53f55 (diff) | |
download | scintilla-mirror-49f6d05e574d93406e917eaceab4c2cae3c6b350.tar.gz |
Avoid a spurious warning from Visual Studio 2013 Code Analysis.
Diffstat (limited to 'src')
-rw-r--r-- | src/CellBuffer.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 855c62a1d..c05060865 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -190,6 +190,10 @@ const char *UndoHistory::AppendAction(actionType at, int position, const char *d } // See if current action can be coalesced into previous action // Will work if both are inserts or deletes and position is same +#if defined(_MSC_VER) && defined(_PREFAST_) + // Visual Studio 2013 Code Analysis wrongly believes actions can be NULL at its next reference + __analysis_assume(actions); +#endif if (currentAction == savePoint) { currentAction++; } else if (!actions[currentAction].mayCoalesce) { |