]> git.saurik.com Git - wxWidgets.git/commit
No changes, just silence some MSVC 11 static analyzer warnings.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 15 Sep 2012 23:20:23 +0000 (23:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 15 Sep 2012 23:20:23 +0000 (23:20 +0000)
commitdaa3509726f9590cecc85f37ef882670667f0650
tree03a37b53d2c789886663224bcf6a00d69f8e3bf8
parent42d7394119d3d8117289c22ecb79d5a49d891648
No changes, just silence some MSVC 11 static analyzer warnings.

This is an aborted attempt to make wxWidgets code compile without warnings
when using MSVC 11 /analyze option, as it was supposed to have become much
better. Unfortunately it still produces way too many false positives to be
really useful, in particular NULL pointer detection is completely broken as
even the code such as (from object.cpp):

        wxClassInfo *info = sm_first;
        while (info)
        {
            if ( info->m_next == this )
                ...
        }

provokes tons of warnings about "info" being NULL inside the loop which is
clearly impossible.

So this commit just fixes a few obvious warnings, mostly about variable
shadowing but also a couple about possibly passing NULL to memcpy().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/buffer.h
src/common/cmdline.cpp
src/common/datetimefmt.cpp
src/common/filefn.cpp
src/common/wxcrt.cpp
src/msw/mimetype.cpp
src/msw/utils.cpp
src/msw/utilsexc.cpp
src/msw/volume.cpp