]> granicus.if.org Git - clang/commit
Tweak dead stores checker to not emit a warning when initialization
authorTed Kremenek <kremenek@apple.com>
Thu, 18 Mar 2010 01:22:39 +0000 (01:22 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 18 Mar 2010 01:22:39 +0000 (01:22 +0000)
commitebd42f40803396d63bc59b77285d088cca61f53f
treeaf539c50c3cff116e78fff32639a35effcb2aa3c
parent9944c769b69b1904a7b16d3ce10fbdc9c67c764f
Tweak dead stores checker to not emit a warning when initialization
a scalar variable with a scalar parameter.  This is a
form of defensive programming.  If the variable is unused,
it will be caused by -Wunused-variable.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98795 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Checker/CheckDeadStores.cpp
test/Analysis/dead-stores.c