From 89b31af9bc4114407bf32fffad875a03e1b8a07f Mon Sep 17 00:00:00 2001 From: joerg Date: Sat, 27 Apr 2013 23:05:27 +0000 Subject: Fixer build with Clang's stricter format string warnings. --- audio/easytag/distinfo | 4 +++- audio/easytag/patches/patch-src_log.h | 13 +++++++++++++ audio/easytag/patches/patch-src_misc.c | 15 +++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 audio/easytag/patches/patch-src_log.h create mode 100644 audio/easytag/patches/patch-src_misc.c (limited to 'audio') diff --git a/audio/easytag/distinfo b/audio/easytag/distinfo index 7dc5b7000b8..24eca618252 100644 --- a/audio/easytag/distinfo +++ b/audio/easytag/distinfo @@ -1,6 +1,8 @@ -$NetBSD: distinfo,v 1.32 2013/02/11 08:56:39 wiz Exp $ +$NetBSD: distinfo,v 1.33 2013/04/27 23:05:27 joerg Exp $ SHA1 (easytag-2.1.8.tar.xz) = 7f9246b0eab97ed9739daf5356c89925634241a2 RMD160 (easytag-2.1.8.tar.xz) = 0b8ef3689730b2ae4fbf8131dbd1328bbf1da8a0 Size (easytag-2.1.8.tar.xz) = 2459496 bytes +SHA1 (patch-src_log.h) = e94fb4b930304610907d82311500ce322830b167 +SHA1 (patch-src_misc.c) = d1c6bdf0ee85a7a18a4891d121b6c1e6eb130a09 SHA1 (patch-src_wavpack__tag.c) = 7b4830930846818a8cdb869c6bc8f85d79d8b5be diff --git a/audio/easytag/patches/patch-src_log.h b/audio/easytag/patches/patch-src_log.h new file mode 100644 index 00000000000..bf8c53816e6 --- /dev/null +++ b/audio/easytag/patches/patch-src_log.h @@ -0,0 +1,13 @@ +$NetBSD: patch-src_log.h,v 1.1 2013/04/27 23:05:27 joerg Exp $ + +--- src/log.h.orig 2013-04-27 22:33:45.000000000 +0000 ++++ src/log.h +@@ -48,7 +48,7 @@ GtkWidget *Create_Log_Area (void); + + void Log_Clean_Log_List (void); + +-void Log_Print (Log_Error_Type error_type, gchar const *format, ...); ++void Log_Print (Log_Error_Type error_type, gchar const *format, ...) G_GNUC_PRINTF(2, 3); + + + #endif /* __LOG_H__ */ diff --git a/audio/easytag/patches/patch-src_misc.c b/audio/easytag/patches/patch-src_misc.c new file mode 100644 index 00000000000..2f31e10a8a7 --- /dev/null +++ b/audio/easytag/patches/patch-src_misc.c @@ -0,0 +1,15 @@ +$NetBSD: patch-src_misc.c,v 1.1 2013/04/27 23:05:27 joerg Exp $ + +--- src/misc.c.orig 2013-02-05 22:42:37.000000000 +0000 ++++ src/misc.c +@@ -875,9 +875,7 @@ Run_Audio_Player_Using_File_List (GList + + if ( !(program_path = Check_If_Executable_Exists(AUDIO_FILE_PLAYER)) ) + { +- gchar *msg = g_strdup_printf(_("The program '%s' cannot be found"),AUDIO_FILE_PLAYER); +- Log_Print(LOG_ERROR,msg); +- g_free(msg); ++ Log_Print(LOG_ERROR, _("The program '%s' cannot be found"),AUDIO_FILE_PLAYER); + return; + } + g_free(program_path); -- cgit v1.2.3