summaryrefslogtreecommitdiff
path: root/misc/goffice0.10/patches/patch-goffice_math_go-matrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/goffice0.10/patches/patch-goffice_math_go-matrix.c')
-rw-r--r--misc/goffice0.10/patches/patch-goffice_math_go-matrix.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/misc/goffice0.10/patches/patch-goffice_math_go-matrix.c b/misc/goffice0.10/patches/patch-goffice_math_go-matrix.c
new file mode 100644
index 00000000000..05dbf7acb0c
--- /dev/null
+++ b/misc/goffice0.10/patches/patch-goffice_math_go-matrix.c
@@ -0,0 +1,24 @@
+$NetBSD: patch-goffice_math_go-matrix.c,v 1.1 2015/08/10 19:30:06 joerg Exp $
+
+Format string is passed in as argument.
+
+--- goffice/math/go-matrix.c.orig 2015-08-10 16:26:04.000000000 +0000
++++ goffice/math/go-matrix.c
+@@ -581,6 +581,8 @@ SUFFIX(go_quad_matrix_eigen_range) (cons
+ }
+ }
+
++#pragma GCC diagnostic push
++#pragma GCC diagnostic ignored "-Wformat-nonliteral"
+
+ void
+ SUFFIX(go_quad_matrix_dump) (const QMATRIX *A, const char *fmt)
+@@ -594,6 +596,8 @@ SUFFIX(go_quad_matrix_dump) (const QMATR
+ }
+ }
+
++#pragma GCC diagnostic pop
++
+ /* -------------------------------------------------------------------------- */
+
+ /**