[beast: 5/57] SFI: add __format_arg__ attribute to _() to improve gcc warnings



commit e25f65e9d06e438409279822f20544b82855807d
Author: Tim Janik <timj gnu org>
Date:   Tue Jul 4 14:40:38 2017 +0200

    SFI: add __format_arg__ attribute to _() to improve gcc warnings
    
    Signed-off-by: Tim Janik <timj gnu org>

 sfi/glib-extra.hh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sfi/glib-extra.hh b/sfi/glib-extra.hh
index 05dbd9d..760f168 100644
--- a/sfi/glib-extra.hh
+++ b/sfi/glib-extra.hh
@@ -361,7 +361,7 @@ std::string version ();
 
 // == Translate i18n strings ==
 const char* bse_gettext_domain ();
-const char* (_)                (const char        *string);
+const char* (_)                (const char        *string) __attribute__ ((__format_arg__ (1)));
 std::string (_)                (const std::string &string);
 
 } // Bse


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]