Commit 0d2ada68 authored by Akim Demaille's avatar Akim Demaille Committed by Alexandre Duret-Lutz
Browse files

build: fixes for G++ 4.7.

* taf-kit/src/edition_commands.hxx: For some reason,
tgetstr takes a "char*", but does not write into it.
So use a cast to remove the "const" bit of the string.
parent b26653de
......@@ -422,10 +422,10 @@ namespace edition_commands
static void main_loop(automaton_t& a, const arguments_t& args)
{
char* term = getenv("TERM");
char* cl = 0;
if (term and (tgetent(0, term) != -1))
cl = tgetstr("cl", 0);
char* cl =
term and (tgetent(0, term) != -1)
? tgetstr((char*) "cp", 0)
: 0;
do
{
if (cl)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment