[dia] [warningectomy] format specifies type 'void *' but ...



commit 0ba63f2344a0a24b37d8fbb8b74fe46e24948513
Author: Hans Breuer <hans breuer org>
Date:   Thu Oct 2 00:01:27 2014 +0200

    [warningectomy] format specifies type 'void *' but ...
    
    pdf-import.cpp:328:7: warning: format specifies type 'void *' but the argument has type 'gint' (aka 
'int') [-Wformat]
                 GPOINTER_TO_INT (f), family, state->getTransformedFontSize(), scale);
                 ^~~~~~~~~~~~~~~~~~~
                                  ^

 plug-ins/pdf/pdf-import.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/pdf/pdf-import.cpp b/plug-ins/pdf/pdf-import.cpp
index 4d1eaeb..8e784d1 100644
--- a/plug-ins/pdf/pdf-import.cpp
+++ b/plug-ins/pdf/pdf-import.cpp
@@ -324,7 +324,7 @@ public :
     gchar *family = g_strdup (f->getFamily() ? f->getFamily()->getCString() : "sans");
 
     // we are (not anymore) building the same font over and over again
-    g_print ("Font %p: '%s' size=%g (* %g)\n",
+    g_print ("Font 0x%x: '%s' size=%g (* %g)\n",
             GPOINTER_TO_INT (f), family, state->getTransformedFontSize(), scale);
 
     // now try to make a fontname Dia/Pango can cope with


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