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:
@@ -279,7 +279,7 @@ static bool *get_DEC_mode( int param, Framebuffer *fb ) {
|
||||
}
|
||||
|
||||
/* helper for CSI_DECSM and CSI_DECRM */
|
||||
void set_if_available( bool *mode, bool value )
|
||||
static void set_if_available( bool *mode, bool value )
|
||||
{
|
||||
if ( mode ) { *mode = value; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user