Fix various new compiler warnings.
terminalfunctions.cc: set_if_available() was undeclared. Fix printf() wint_t/wchar_t warnings. mosh-server.cc: Fix warning for side effects inside typeid(). Signed-off-by: John Hood <cgull@glup.org>
This commit is contained in:
@@ -43,7 +43,7 @@ std::string Action::str( void )
|
||||
char thechar[ 10 ] = { 0 };
|
||||
if ( char_present ) {
|
||||
if ( iswprint( ch ) )
|
||||
snprintf( thechar, 10, "(%lc)", ch );
|
||||
snprintf( thechar, 10, "(%lc)", (wint_t)ch );
|
||||
else
|
||||
snprintf( thechar, 10, "(0x%x)", (unsigned int)ch );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user