forked from OSchip/llvm-project
Target: fix -Wcast-qual warning
We were unnecessarily stripping the const qualifier on the temporary variable. Restore the constness to avoid the warning. NFC. llvm-svn: 258547
This commit is contained in:
parent
27ea26b7c0
commit
79e6749da3
|
|
@ -180,7 +180,7 @@ UnixSignals::GetShortName(ConstString name) const
|
|||
{
|
||||
if (name)
|
||||
{
|
||||
char* signame = (char*)(name.AsCString());
|
||||
const char* signame = name.AsCString();
|
||||
return ConstString(signame + 3); // Remove "SIG" from name
|
||||
}
|
||||
return name;
|
||||
|
|
|
|||
Loading…
Reference in New Issue