• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

作図ソフト dia の改良版


Commit MetaInfo

修订版70a0daf9364c8f3ad75edcdea08eeba6f248a81a (tree)
时间2014-10-04 18:43:26
作者Hans Breuer <hans@breu...>
CommiterHans Breuer

Log Message

[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));

更改概述

差异

--- a/objects/UML/class.c
+++ b/objects/UML/class.c
@@ -2430,7 +2430,7 @@ umlclass_sanity_check(UMLClass *c, gchar *msg)
24302430 dia_assert_true(&c->connections[i] ==
24312431 obj->connections[i + umlclass_num_dynamic_connectionpoints(c)],
24322432 "%s: Class %p mainpoint mismatch: %p != %p (at %d)\n",
2433- msg, c, i, &c->connections[i],
2433+ msg, c, &c->connections[i],
24342434 obj->connections[i + umlclass_num_dynamic_connectionpoints(c)],
24352435 i + umlclass_num_dynamic_connectionpoints(c));
24362436 #endif