[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:45:44 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=759d92e

The following commit has been merged in the master branch:
commit 759d92e560b3b67229998d2569b332142a9bb149
Author: Robin Mills <robin at clanmills.com>
Date:   Mon Sep 14 14:35:44 2015 +0000

    Fix Linux warning message from src/image.cpp concerning "gnu_printf"
---
 src/image_int.hpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/image_int.hpp b/src/image_int.hpp
index fbc54b8..888034f 100644
--- a/src/image_int.hpp
+++ b/src/image_int.hpp
@@ -36,6 +36,10 @@
 // + standard includes
 #include <string>
 
+#if (defined(__GNUG__) || defined(__GNUC__)) && ! defined(__clang__)
+#define ATTRIBUTE_FORMAT_PRINTF __attribute__((format(printf, 1, 0)))
+#endif
+
 // *****************************************************************************
 // namespace extensions
 namespace Exiv2 {
@@ -47,7 +51,7 @@ namespace Exiv2 {
     /*!
       @brief format a string in the pattern of \em sprintf \em .
      */
-    std::string stringFormat(const char* format, ...);
+    std::string stringFormat(const char* format, ...) ATTRIBUTE_FORMAT_PRINTF;
 
     /*!
       @brief format binary for display in \em printStructure() \em .

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list