[dia] [warningectomy] more format issues with dia_assert_true()
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [warningectomy] more format issues with dia_assert_true()
- Date: Sat, 4 Oct 2014 11:06:42 +0000 (UTC)
commit 70a0daf9364c8f3ad75edcdea08eeba6f248a81a
Author: Hans Breuer <hans breuer org>
Date: Fri Oct 3 22:17:12 2014 +0200
[warningectomy] more format issues with dia_assert_true()
class.c:2433:13: warning: format specifies type 'void *' but the argument has type 'int' [-Wformat]
msg, c, i, &c->connections[i],
^
class.c:2434:5: warning: format specifies type 'int' but the argument has type 'ConnectionPoint *' (aka
'struct _ConnectionPoint *') [-Wformat]
obj->connections[i + umlclass_num_dynamic_connectionpoints(c)],
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class.c:2435:5: warning: data argument not used by format string [-Wformat-extra-args]
i + umlclass_num_dynamic_connectionpoints(c));
^
objects/UML/class.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/objects/UML/class.c b/objects/UML/class.c
index 9851649..596ba07 100644
--- a/objects/UML/class.c
+++ b/objects/UML/class.c
@@ -2430,7 +2430,7 @@ umlclass_sanity_check(UMLClass *c, gchar *msg)
dia_assert_true(&c->connections[i] ==
obj->connections[i + umlclass_num_dynamic_connectionpoints(c)],
"%s: Class %p mainpoint mismatch: %p != %p (at %d)\n",
- msg, c, i, &c->connections[i],
+ msg, c, &c->connections[i],
obj->connections[i + umlclass_num_dynamic_connectionpoints(c)],
i + umlclass_num_dynamic_connectionpoints(c));
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]