mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-30 21:56:43 +00:00
Remove default case in switch which covers all enumeration values
This also conveniently eliminates another warning from the unintentional use of a trigraph: warning: trigraph converted to '[' character [-Wtrigraphs] default: printf("???(%u)", type); ^ llvm-svn: 255049
This commit is contained in:
parent
5067158381
commit
a3ad0f1e27
@ -56,7 +56,6 @@ CompilerContext::Dump() const
|
|||||||
case CompilerContextKind::Variable: printf("Variable"); break;
|
case CompilerContextKind::Variable: printf("Variable"); break;
|
||||||
case CompilerContextKind::Enumeration: printf("Enumeration"); break;
|
case CompilerContextKind::Enumeration: printf("Enumeration"); break;
|
||||||
case CompilerContextKind::Typedef: printf("Typedef"); break;
|
case CompilerContextKind::Typedef: printf("Typedef"); break;
|
||||||
default: printf("???(%u)", type);
|
|
||||||
}
|
}
|
||||||
printf("(\"%s\")\n", name.GetCString());
|
printf("(\"%s\")\n", name.GetCString());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user