gtk/gui.cpp: silence warnings

This commit is contained in:
zvon 2020-04-12 21:12:44 +02:00
parent 0ca5e21eb2
commit d6899a505e

View File

@ -18,17 +18,17 @@ int main( int argc, char **argv ) {
argc, argv, "org.idonthaveanorganization.tvrename" ); argc, argv, "org.idonthaveanorganization.tvrename" );
if ( setlocale( LC_ALL, "" ) == NULL ) if ( setlocale( LC_ALL, "" ) == NULL )
error( 1, errno, _( INVALID_LOCALE ).c_str() ); error( 1, errno, "%s", _( INVALID_LOCALE ).c_str() );
if ( FSLib::exists( "/usr/share/locale/en_US/LC_MESSAGES/tv_rename.mo" ) ) { if ( FSLib::exists( "/usr/share/locale/en_US/LC_MESSAGES/tv_rename.mo" ) ) {
if ( bindtextdomain( DOMAIN, "/usr/share/locale" ) == NULL ) if ( bindtextdomain( DOMAIN, "/usr/share/locale" ) == NULL )
error( 1, errno, _( MEM_ALLOC_FAILED ).c_str() ); error( 1, errno, "%s", _( MEM_ALLOC_FAILED ).c_str() );
if ( textdomain( DOMAIN ) == NULL ) if ( textdomain( DOMAIN ) == NULL )
error( 1, errno, _( MEM_ALLOC_FAILED ).c_str() ); error( 1, errno, "%s", _( MEM_ALLOC_FAILED ).c_str() );
} else { } else {
if ( bindtextdomain( DOMAIN, "./locale" ) == NULL ) if ( bindtextdomain( DOMAIN, "./locale" ) == NULL )
error( 1, errno, _( MEM_ALLOC_FAILED ).c_str() ); error( 1, errno, "%s", _( MEM_ALLOC_FAILED ).c_str() );
if ( textdomain( DOMAIN ) == NULL ) if ( textdomain( DOMAIN ) == NULL )
error( 1, errno, _( MEM_ALLOC_FAILED ).c_str() ); error( 1, errno, "%s", _( MEM_ALLOC_FAILED ).c_str() );
} }
// TODO let user know that program is authenticating and will start shortly // TODO let user know that program is authenticating and will start shortly