mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
GCC warns about removing const with a c-style cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188259 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
15ab9f4aaa
commit
d89266dd82
@ -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
Block a user