Bjørn Lie
78fbdb4202
dia-0.97.3-get_data_size.patch, dia-0.97.3-const-ft_vector.patch, dia-0.97.3-g_test_add_data_func_1.patch and dia-0.97.3-g_test_add_data_func_2.patch to address C99 compliance issues (mainly use of incompatible pointer types) that are errors by default with GCC 14 [boo#1224536]. All of these patches were taken from the Fedora dia package. Please (assuming the request is OK) forward to Factory soon-ish too so that we can switch the default compiler. Thanks. OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/dia?expand=0&rev=56
32 lines
1.4 KiB
Diff
32 lines
1.4 KiB
Diff
From caddfcab250fe677ecf294fad835b71e6b10cf26 Mon Sep 17 00:00:00 2001
|
|
From: Hans Breuer <hans@breuer.org>
|
|
Date: Fri, 3 Oct 2014 22:26:36 +0200
|
|
Subject: [PATCH] [warningectomy] incompatible pointer types passing ...
|
|
|
|
test-boundingbox.c:152:58: warning: incompatible pointer types passing 'void (const struct _TestBeziers *)' to parameter of type 'GTestDataFunc' (aka 'void (*)(gconstpointer)') [-Wincompatible-pointer-types]
|
|
g_test_add_data_func (testpath, &_test_beziers[i], _check_one_bezier);
|
|
^~~~~~~~~~~~~~~~~
|
|
test-svg.c:117:55: warning: incompatible pointer types passing 'void (const PathData *)' to parameter of type 'GTestDataFunc' (aka 'void (*)(gconstpointer)') [-Wincompatible-pointer-types]
|
|
g_test_add_data_func (testpath, &_test_path[i], _check_one_path);
|
|
^~~~~~~~~~~~~~~
|
|
---
|
|
tests/test-boundingbox.c | 3 ++-
|
|
tests/test-svg.c | 3 ++-
|
|
2 files changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/tests/test-boundingbox.c b/tests/test-boundingbox.c
|
|
index f5b57250e..f542e590d 100644
|
|
--- a/tests/test-boundingbox.c
|
|
+++ b/tests/test-boundingbox.c
|
|
@@ -132,8 +132,9 @@ static struct _TestBeziers {
|
|
#undef BEZ
|
|
|
|
static void
|
|
-_check_one_bezier (const struct _TestBeziers *test)
|
|
+_check_one_bezier (gconstpointer p)
|
|
{
|
|
+ const struct _TestBeziers *test = p;
|
|
Rectangle rect;
|
|
PolyBBExtras extra = {0, T*.7, T*.7, T*.7, 0 };
|
|
|