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 | 48554742aa34b5141d3a55990142c723822236e0 (patch) | |
tree | 3e654a51e9420dac218700f9a7a4a5807695793b /src/CellBuffer.cxx | |
parent | d8ceeb760c744af368d7d180f39e743b58385e8a (diff) | |
download | scintilla-mirror-48554742aa34b5141d3a55990142c723822236e0.tar.gz |
Avoid a spurious warning from Visual Studio 2013 Code Analysis.
Diffstat (limited to 'src/CellBuffer.cxx')
-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) { |