Eliminate warning on OS X where argument to tigetstr is not const
This commit is contained in:
@@ -52,7 +52,8 @@ Display::Display( bool use_environment )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
char *val = tigetstr( "ech" );
|
char ech_name[] = "ech";
|
||||||
|
char *val = tigetstr( ech_name );
|
||||||
if ( val <= 0 ) {
|
if ( val <= 0 ) {
|
||||||
has_ech = false;
|
has_ech = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user