From d6899a505e341c0d1a4b0e8c7e9bdcd7e94c4f0e Mon Sep 17 00:00:00 2001 From: zvon Date: Sun, 12 Apr 2020 21:12:44 +0200 Subject: [PATCH] gtk/gui.cpp: silence warnings --- gtk/gui.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gtk/gui.cpp b/gtk/gui.cpp index ec43bf5..5940e3e 100644 --- a/gtk/gui.cpp +++ b/gtk/gui.cpp @@ -18,17 +18,17 @@ int main( int argc, char **argv ) { argc, argv, "org.idonthaveanorganization.tvrename" ); 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 ( 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 ) - error( 1, errno, _( MEM_ALLOC_FAILED ).c_str() ); + error( 1, errno, "%s", _( MEM_ALLOC_FAILED ).c_str() ); } else { 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 ) - 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