projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15ab9f4
)
GCC warns about removing const with a c-style cast.
author
Benjamin Kramer
<benny.kra@googlemail.com>
Tue, 13 Aug 2013 09:57:55 +0000
(09:57 +0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Tue, 13 Aug 2013 09:57:55 +0000
(09:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188259
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/Unix/Process.inc
patch
|
blob
|
history
diff --git
a/lib/Support/Unix/Process.inc
b/lib/Support/Unix/Process.inc
index 768c338a4d19772462f9f44bf1ac4338169401be..3731618db5ae7d787cd612b92350477778ecf463 100644
(file)
--- 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