diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-08-13 09:57:55 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-08-13 09:57:55 +0000 |
commit | 5bd3fab9010430f946c5bbc31a523de749195c98 (patch) | |
tree | bf44d74fa5f94f7c8dfcf31be93dc0fc4bae5645 /llvm/lib/Support/Unix/Process.inc | |
parent | 0e07649ae51fb4e374d93b69dfabf3845e647601 (diff) | |
download | llvm-5bd3fab9010430f946c5bbc31a523de749195c98.zip llvm-5bd3fab9010430f946c5bbc31a523de749195c98.tar.gz llvm-5bd3fab9010430f946c5bbc31a523de749195c98.tar.bz2 |
GCC warns about removing const with a c-style cast.
llvm-svn: 188259
Diffstat (limited to 'llvm/lib/Support/Unix/Process.inc')
-rw-r--r-- | llvm/lib/Support/Unix/Process.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Process.inc b/llvm/lib/Support/Unix/Process.inc index 768c338..3731618 100644 --- a/llvm/lib/Support/Unix/Process.inc +++ b/llvm/lib/Support/Unix/Process.inc @@ -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 |