aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Unix/Process.inc
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-08-13 09:57:55 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-08-13 09:57:55 +0000
commit5bd3fab9010430f946c5bbc31a523de749195c98 (patch)
treebf44d74fa5f94f7c8dfcf31be93dc0fc4bae5645 /llvm/lib/Support/Unix/Process.inc
parent0e07649ae51fb4e374d93b69dfabf3845e647601 (diff)
downloadllvm-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.inc2
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