[dia] [scan-build] Value stored to 'ctm' [...] is never read etc.
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [scan-build] Value stored to 'ctm' [...] is never read etc.
- Date: Sun, 7 Sep 2014 18:50:01 +0000 (UTC)
commit 7cff402aa9e4898350cbae9c09954bc93463a907
Author: Hans Breuer <hans breuer org>
Date: Sun Sep 7 20:38:18 2014 +0200
[scan-build] Value stored to 'ctm' [...] is never read etc.
pdf-import.cpp: In member function 'virtual void DiaOutputDev::updateFont(GfxState*)':
pdf-import.cpp:328:94: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has
type 'GfxFont*' [-Wformat=]
g_print ("Font 0x%08x: '%s' size=%g (* %g)\n", f, family, state->getTransformedFontSize());
^
pdf-import.cpp:328:94: warning: format '%g' expects a matching 'double' argument [-Wformat=]
pdf-import.cpp:129:13: warning: Value stored to 'ctm' during its initialization is never read
double *ctm = getDefCTM();
^~~ ~~~~~~~~~~~
plug-ins/pdf/pdf-import.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/pdf/pdf-import.cpp b/plug-ins/pdf/pdf-import.cpp
index cd16507..fef9b24 100644
--- a/plug-ins/pdf/pdf-import.cpp
+++ b/plug-ins/pdf/pdf-import.cpp
@@ -126,7 +126,6 @@ public :
double m21, double m22,
double m31, double m32)
{
- double *ctm = getDefCTM();
DiaMatrix mat;
mat.xx = m11;
@@ -325,7 +324,8 @@ 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 0x%08x: '%s' size=%g (* %g)\n", f, family, state->getTransformedFontSize());
+ g_print ("Font 0x%08x: '%s' size=%g (* %g)\n",
+ (int)f, family, state->getTransformedFontSize(), scale);
// now try to make a fontname Dia/Pango can cope with
// strip style postfix - we already have extracted the style bits above
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]