Silence an annoying GCC warning about use of an uninitialized variable. Even
making the other switch case unreachable, or sinking the 'continue' into it doesn't silence this. llvm-svn: 107745
This commit is contained in:
parent
f0e551d4f4
commit
509a9ce9da
|
@ -311,7 +311,7 @@ void IdempotentOperationChecker::VisitEndAnalysis(ExplodedGraph &G,
|
||||||
hash.begin(); i != hash.end(); ++i) {
|
hash.begin(); i != hash.end(); ++i) {
|
||||||
if (i->second != Impossible) {
|
if (i->second != Impossible) {
|
||||||
// Select the error message.
|
// Select the error message.
|
||||||
const char *msg;
|
const char *msg = 0;
|
||||||
switch (i->second) {
|
switch (i->second) {
|
||||||
case Equal:
|
case Equal:
|
||||||
msg = "idempotent operation; both operands are always equal in value";
|
msg = "idempotent operation; both operands are always equal in value";
|
||||||
|
|
Loading…
Reference in New Issue