[dia] [warningectomy] incompatible pointer types passing ...
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [warningectomy] incompatible pointer types passing ...
- Date: Sat, 4 Oct 2014 11:06:52 +0000 (UTC)
commit caddfcab250fe677ecf294fad835b71e6b10cf26
Author: Hans Breuer <hans breuer org>
Date: Fri Oct 3 22:26:36 2014 +0200
[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 f5b5725..f542e59 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 };
diff --git a/tests/test-svg.c b/tests/test-svg.c
index 6acc80d..290cba4 100644
--- a/tests/test-svg.c
+++ b/tests/test-svg.c
@@ -80,8 +80,9 @@ PathData _test_path[] = {
};
static void
-_check_one_path (const PathData* pd)
+_check_one_path (gconstpointer _p)
{
+ const PathData* pd = _p;
const gchar* p;
gchar* unparsed = NULL;
gboolean closed = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]