summaryrefslogtreecommitdiff
path: root/lib/Support/Unix
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
commitd89266dd82747f646e21061df56cdd4378aa0b30 (patch)
tree22e0d1d53f2ec9e740f86189dadef2e940407d28 /lib/Support/Unix
parent15ab9f4aaa0bebe50c1367963c409d929bede030 (diff)
downloadllvm-d89266dd82747f646e21061df56cdd4378aa0b30.tar.gz
llvm-d89266dd82747f646e21061df56cdd4378aa0b30.tar.bz2
llvm-d89266dd82747f646e21061df56cdd4378aa0b30.tar.xz
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
Diffstat (limited to 'lib/Support/Unix')
-rw-r--r--lib/Support/Unix/Process.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Unix/Process.inc b/lib/Support/Unix/Process.inc
index 768c338a4d..3731618db5 100644
--- a/lib/Support/Unix/Process.inc
+++ b/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