forked from OSchip/llvm-project
GCC warns about removing const with a c-style cast.
llvm-svn: 188259
This commit is contained in:
parent
0e07649ae5
commit
5bd3fab901
|
@ -280,7 +280,7 @@ static bool terminalHasColors(int fd) {
|
|||
//
|
||||
// The 'tigetnum' routine returns -2 or -1 on errors, and might return 0 if
|
||||
// the terminfo says that no colors are supported.
|
||||
if (tigetnum((char *)"colors") > 0)
|
||||
if (tigetnum(const_cast<char *>("colors")) > 0)
|
||||
return true;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue