GNOME Bugzilla – Bug 474635
Warnings compiling gnome-games
Last modified: 2009-12-10 00:01:41 UTC
I get these compilation warnings while compiling gnome-games. Each of these should be fixed and removed. libtool: link: warning: `-version-info/-version-number' is ignored for convenience libraries libtool: link: warning: `-version-info/-version-number' is ignored for convenience libraries libtool: link: warning: `-version-info/-version-number' is ignored for convenience libraries libtool: link: warning: `-version-info/-version-number' is ignored for convenience libraries about.c: In function 'about_draw_text': about.c:305: warning: array subscript is above array bounds about.c: In function 'about_realize': about.c:139: warning: array subscript is above array bounds chat.c: In function 'chat_display_server': chat.c:266: warning: pointer targets in passing argument 2 of 'gtk_xtext_append_indent' differ in signedness chat.c:266: warning: pointer targets in passing argument 4 of 'gtk_xtext_append_indent' differ in signedness chat.c:277: warning: pointer targets in passing argument 2 of 'gtk_xtext_append_indent' differ in signedness chat.c:277: warning: pointer targets in passing argument 4 of 'gtk_xtext_append_indent' differ in signedness chat.c:295: warning: pointer targets in passing argument 2 of 'gtk_xtext_append_indent' differ in signedness chat.c:295: warning: pointer targets in passing argument 4 of 'gtk_xtext_append_indent' differ in signedness chat.c:312: warning: pointer targets in passing argument 2 of 'gtk_xtext_append_indent' differ in signedness chat.c:312: warning: pointer targets in passing argument 4 of 'gtk_xtext_append_indent' differ in signedness chat.c:321: warning: pointer targets in passing argument 2 of 'gtk_xtext_append_indent' differ in signedness chat.c:321: warning: pointer targets in passing argument 4 of 'gtk_xtext_append_indent' differ in signedness chat.c: In function 'chat_display_local': chat.c:349: warning: pointer targets in passing argument 2 of 'gtk_xtext_append_indent' differ in signedness chat.c:349: warning: pointer targets in passing argument 4 of 'gtk_xtext_append_indent' differ in signedness chat.c:355: warning: pointer targets in passing argument 2 of 'gtk_xtext_append_indent' differ in signedness chat.c:355: warning: pointer targets in passing argument 4 of 'gtk_xtext_append_indent' differ in signedness chat.c:360: warning: pointer targets in passing argument 2 of 'gtk_xtext_append_indent' differ in signedness chat.c:360: warning: pointer targets in passing argument 4 of 'gtk_xtext_append_indent' differ in signedness chat.c: In function 'chat_enter': chat.c:542: warning: pointer targets in passing argument 2 of 'gtk_xtext_append_indent' differ in signedness chat.c:542: warning: pointer targets in passing argument 4 of 'gtk_xtext_append_indent' differ in signedness chat.c: In function 'chat_part': chat.c:580: warning: pointer targets in passing argument 2 of 'gtk_xtext_append_indent' differ in signedness chat.c:580: warning: pointer targets in passing argument 4 of 'gtk_xtext_append_indent' differ in signedness In file included from xtext.c:65: xtext.h:36:1: warning: "XTEXT_MARK_FG" redefined In file included from xtext.c:53: xtext-ggz.h:61:1: warning: this is the location of the previous definition In file included from xtext.c:65: xtext.h:37:1: warning: "XTEXT_MARK_BG" redefined In file included from xtext.c:53: xtext-ggz.h:62:1: warning: this is the location of the previous definition In file included from xtext.c:65: xtext.h:38:1: warning: "XTEXT_FG" redefined In file included from xtext.c:53: xtext-ggz.h:63:1: warning: this is the location of the previous definition In file included from xtext.c:65: xtext.h:39:1: warning: "XTEXT_BG" redefined In file included from xtext.c:53: xtext-ggz.h:64:1: warning: this is the location of the previous definition In file included from xtext.c:65: xtext.h:40:1: warning: "XTEXT_MARKER" redefined In file included from xtext.c:53: xtext-ggz.h:65:1: warning: this is the location of the previous definition xtext.c: In function 'backend_get_text_width': xtext.c:530: warning: pointer targets in passing argument 2 of 'pango_layout_set_text' differ in signedness xtext.c: In function 'backend_get_char_width': xtext.c:548: warning: pointer targets in passing argument 2 of 'pango_layout_set_text' differ in signedness xtext.c: In function 'gtk_xtext_get_word': xtext.c:1830: warning: pointer targets in return differ in signedness xtext.c: In function 'gtk_xtext_motion_notify': xtext.c:1946: warning: pointer targets in assignment differ in signedness xtext.c:1949: warning: pointer targets in passing argument 2 of 'xtext->urlcheck_function' differ in signedness xtext.c: In function 'gtk_xtext_button_release': xtext.c:2101: warning: pointer targets in assignment differ in signedness xtext.c: In function 'gtk_xtext_button_press': xtext.c:2125: warning: pointer targets in assignment differ in signedness xtext.c: In function 'gtk_xtext_selection_get_text': xtext.c:2272: warning: pointer targets in passing argument 1 of 'gtk_xtext_strip_color' differ in signedness xtext.c:2272: warning: pointer targets in assignment differ in signedness xtext.c: In function 'gtk_xtext_selection_get': xtext.c:2324: warning: pointer targets in assignment differ in signedness xtext.c: In function 'gtk_xtext_render_flush': xtext.c:2665: warning: pointer targets in passing argument 6 of 'backend_draw_text' differ in signedness xtext.c: In function 'shade_pixmap': xtext.c:3444: warning: pointer targets in passing argument 4 of 'XGetGeometry' differ in signedness xtext.c:3444: warning: pointer targets in passing argument 5 of 'XGetGeometry' differ in signedness xtext.c: In function 'gtk_xtext_save': xtext.c:4172: warning: pointer targets in assignment differ in signedness xtext.c: In function 'gtk_xtext_search': xtext.c:4632: warning: pointer targets in passing argument 1 of 'nocasestrstr' differ in signedness xtext.c:4632: warning: pointer targets in passing argument 2 of 'nocasestrstr' differ in signedness xtext.c:4632: warning: pointer targets in assignment differ in signedness xtext.c:4635: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness xtext.c: In function 'gtk_xtext_append_entry': xtext.c:4743: warning: pointer targets in passing argument 4 of 'gtk_xtext_text_width' differ in signedness xtext.c: In function 'gtk_xtext_append_indent': xtext.c:4827: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness xtext.c:4830: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness xtext.c: In function 'gtk_xtext_append': xtext.c:4885: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness xtext.c: At top level: xtext.c:2494: warning: 'gtk_xtext_conv_color' defined but not used xtext.c: In function 'gtk_xtext_render_flush': xtext.c:2605: warning: 'dest_y' may be used uninitialized in this function xtext.c:2605: warning: 'dest_x' may be used uninitialized in this function libtool: link: warning: `-version-info/-version-number' is ignored for convenience libraries games-setgid-io.c: In function 'write_n_bytes': games-setgid-io.c:110: warning: pointer of type 'void *' used in arithmetic games-setgid-io.c: In function 'read_n_bytes': games-setgid-io.c:127: warning: pointer of type 'void *' used in arithmetic games-scores-backend.c: In function 'games_scores_backend_set_scores': games-scores-backend.c:282: warning: format '%lld' expects type 'long long int', but argument 3 has type 'guint64' game.cpp:63: warning: deprecated conversion from string constant to ‘gchar*’ chips.cpp: In function ‘void bj_chip_set_size(gint, gint)’: chips.cpp:67: warning: deprecated conversion from string constant to ‘gchar*’ chips.cpp:67: warning: deprecated conversion from string constant to ‘gchar*’ chips.cpp:67: warning: deprecated conversion from string constant to ‘gchar*’ chips.cpp:67: warning: deprecated conversion from string constant to ‘gchar*’ C/blackjack.xml:412: parser error : Entity 'mdash' not defined — ^ C/blackjack.xml:422: parser error : Entity 'mdash' not defined — ^ C/blackjack.xml:432: parser error : Entity 'mdash' not defined — ^ C/blackjack.xml:444: parser error : Entity 'mdash' not defined — ^ C/blackjack.xml:466: parser error : Entity 'mdash' not defined — ^ C/blackjack.xml:473: parser error : Entity 'hellip' not defined <guimenuitem>Preferences…</guimenuitem> ^ C/blackjack.xml:474: parser error : Entity 'mdash' not defined — ^ C/blackjack.xml:497: parser error : Entity 'mdash' not defined — ^ C/blackjack.xml:505: parser error : Entity 'mdash' not defined — ^ fr/blackjack.xml:371: parser error : Entity 'mdash' not defined Ctrl-N</keysym></shortcut><guimenuitem>Nouveau</guimenuitem></menuchoice>— ^ fr/blackjack.xml:375: parser error : Entity 'mdash' not defined <para><menuchoice><guimenuitem>Recommencer</guimenuitem></menuchoice>— ^ fr/blackjack.xml:379: parser error : Entity 'mdash' not defined <para><menuchoice><guimenuitem>Astuce</guimenuitem></menuchoice>— ^ fr/blackjack.xml:383: parser error : Entity 'mdash' not defined Ctrl-Q</keysym></shortcut><guimenuitem>Quitter</guimenuitem></menuchoice>— ^ fr/blackjack.xml:398: parser error : Entity 'mdash' not defined <para><guimenuitem>Barre d'outils</guimenuitem>— Cet él ^ fr/blackjack.xml:402: parser error : Entity 'mdash' not defined <para><guimenuitem>Préférences</guimenuitem>— Cela ouv ^ fr/blackjack.xml:417: parser error : Entity 'mdash' not defined <para><guimenuitem>Sommaire</guimenuitem>— Ouvre le navi ^ fr/blackjack.xml:421: parser error : Entity 'mdash' not defined <para><guimenuitem>À propos</guimenuitem>— Ouvre la bo ^ oc/blackjack.xml:481: parser error : Entity 'mdash' not defined — ^ oc/blackjack.xml:491: parser error : Entity 'mdash' not defined — ^ oc/blackjack.xml:501: parser error : Entity 'mdash' not defined — ^ oc/blackjack.xml:513: parser error : Entity 'mdash' not defined — ^ oc/blackjack.xml:535: parser error : Entity 'mdash' not defined — ^ oc/blackjack.xml:542: parser error : Entity 'hellip' not defined <guimenuitem>Preferences…</guimenuitem> ^ oc/blackjack.xml:543: parser error : Entity 'mdash' not defined — ^ oc/blackjack.xml:566: parser error : Entity 'mdash' not defined — ^ oc/blackjack.xml:574: parser error : Entity 'mdash' not defined — ^ sv/blackjack.xml:405: parser error : Entity 'mdash' not defined — ^ sv/blackjack.xml:415: parser error : Entity 'mdash' not defined — ^ sv/blackjack.xml:425: parser error : Entity 'mdash' not defined — ^ sv/blackjack.xml:437: parser error : Entity 'mdash' not defined — ^ sv/blackjack.xml:456: parser error : Entity 'mdash' not defined — ^ sv/blackjack.xml:463: parser error : Entity 'hellip' not defined <guimenuitem>Preferences…</guimenuitem> ^ sv/blackjack.xml:464: parser error : Entity 'mdash' not defined — ^ sv/blackjack.xml:484: parser error : Entity 'mdash' not defined — ^ sv/blackjack.xml:492: parser error : Entity 'mdash' not defined — ^ highscores.cpp:29: warning: deprecated conversion from string constant to ‘gchar*’ renderer.cpp:31: warning: deprecated conversion from string constant to ‘gchar*’ renderer.cpp:31: warning: deprecated conversion from string constant to ‘gchar*’ renderer.cpp:31: warning: deprecated conversion from string constant to ‘gchar*’ renderer.cpp:31: warning: deprecated conversion from string constant to ‘gchar*’ renderer.cpp:31: warning: deprecated conversion from string constant to ‘gchar*’ renderer.cpp:31: warning: deprecated conversion from string constant to ‘gchar*’ renderer.cpp:31: warning: deprecated conversion from string constant to ‘gchar*’ renderer.cpp:31: warning: deprecated conversion from string constant to ‘gchar*’ tetris.cpp: In constructor ‘Tetris::Tetris(int)’: tetris.cpp:102: warning: deprecated conversion from string constant to ‘gchar*’ tetris.cpp:102: warning: deprecated conversion from string constant to ‘gchar*’ tetris.cpp:102: warning: deprecated conversion from string constant to ‘gchar*’ tetris.cpp:102: warning: deprecated conversion from string constant to ‘gchar*’ tetris.cpp:102: warning: deprecated conversion from string constant to ‘gchar*’ tetris.cpp:102: warning: deprecated conversion from string constant to ‘gchar*’ es/gnomine.xml:217: parser error : Entity 'mdash' not defined tura y anchura de la rejilla de casillas deseada. El número de minas es — ^ es/gnomine.xml:217: parser error : Entity 'mdash' not defined la rejilla de casillas deseada. El número de minas es —obviamente— ^ C/same-gnome.xml:153: parser error : Entity 'vellip' not defined <row><entry>⋮</entry><entry>⋮</entry></row> ^ C/same-gnome.xml:153: parser error : Entity 'vellip' not defined <row><entry>⋮</entry><entry>⋮</entry></row> ^ en_GB/same-gnome.xml:148: parser error : Entity 'vellip' not defined <row><entry>⋮</entry><entry>⋮</entry></row> ^ en_GB/same-gnome.xml:148: parser error : Entity 'vellip' not defined <row><entry>⋮</entry><entry>⋮</entry></row> ^ es/same-gnome.xml:148: parser error : Entity 'vellip' not defined <row><entry>⋮</entry><entry>⋮</entry></row> ^ es/same-gnome.xml:148: parser error : Entity 'vellip' not defined <row><entry>⋮</entry><entry>⋮</entry></row> ^ fr/same-gnome.xml:148: parser error : Entity 'vellip' not defined <row><entry>⋮</entry><entry>⋮</entry></row> ^ fr/same-gnome.xml:148: parser error : Entity 'vellip' not defined <row><entry>⋮</entry><entry>⋮</entry></row> ^ oc/same-gnome.xml:153: parser error : Entity 'vellip' not defined <row><entry>⋮</entry><entry>⋮</entry></row> ^ oc/same-gnome.xml:153: parser error : Entity 'vellip' not defined <row><entry>⋮</entry><entry>⋮</entry></row> ^ ru/same-gnome.xml:148: parser error : Entity 'vellip' not defined <row><entry>⋮</entry><entry>⋮</entry></row> ^ ru/same-gnome.xml:148: parser error : Entity 'vellip' not defined <row><entry>⋮</entry><entry>⋮</entry></row> ^ sv/same-gnome.xml:148: parser error : Entity 'vellip' not defined <row><entry>⋮</entry><entry>⋮</entry></row> ^ sv/same-gnome.xml:148: parser error : Entity 'vellip' not defined <row><entry>⋮</entry><entry>⋮</entry></row> ^ C/mahjongg.xml:405: parser error : Entity 'mdash' not defined </menuchoice> — ^ C/mahjongg.xml:413: parser error : Entity 'mdash' not defined </menuchoice> — ^ C/mahjongg.xml:421: parser error : Entity 'mdash' not defined </menuchoice> — ^ C/mahjongg.xml:433: parser error : Entity 'mdash' not defined </menuchoice> — ^ C/mahjongg.xml:445: parser error : Entity 'mdash' not defined </menuchoice> — ^ C/mahjongg.xml:456: parser error : Entity 'mdash' not defined </menuchoice> — ^ C/mahjongg.xml:464: parser error : Entity 'mdash' not defined </menuchoice> — ^ C/mahjongg.xml:479: parser error : Entity 'mdash' not defined </menuchoice> — ^ C/mahjongg.xml:498: parser error : Entity 'mdash' not defined </menuchoice> — ^ C/mahjongg.xml:512: parser error : Entity 'mdash' not defined </menuchoice> — ^ C/mahjongg.xml:534: parser error : Entity 'mdash' not defined </menuchoice> — ^ C/mahjongg.xml:542: parser error : Entity 'mdash' not defined </menuchoice> — ^ C/mahjongg.xml:595: parser error : Entity 'mdash' not defined <guilabel>Tile Set:</guilabel> — ^ C/mahjongg.xml:601: parser error : Entity 'mdash' not defined <guilabel>Select Map:</guilabel> — ^ C/mahjongg.xml:610: parser error : Entity 'mdash' not defined <guilabel>Background Color:</guilabel> — ^ fr/mahjongg.xml:270: parser error : Entity 'mdash' not defined Ctrl-N</keysym></shortcut><guimenuitem>Nouveau</guimenuitem></menuchoice>— ^ fr/mahjongg.xml:273: parser error : Entity 'mdash' not defined <para><menuchoice><guimenuitem>Recommencer</guimenuitem></menuchoice>— ^ fr/mahjongg.xml:276: parser error : Entity 'mdash' not defined <para><menuchoice><guimenuitem>Pause</guimenuitem></menuchoice>— Ceci ^ fr/mahjongg.xml:279: parser error : Entity 'mdash' not defined /shortcut><guimenuitem>Annuler le déplacement</guimenuitem></menuchoice>— ^ fr/mahjongg.xml:282: parser error : Entity 'mdash' not defined /shortcut><guimenuitem>Refaire le déplacement</guimenuitem></menuchoice>— ^ fr/mahjongg.xml:285: parser error : Entity 'mdash' not defined <para><menuchoice><guimenuitem>Astuce</guimenuitem></menuchoice>— Cet ^ fr/mahjongg.xml:288: parser error : Entity 'mdash' not defined <para><menuchoice><guimenuitem>Scores</guimenuitem></menuchoice>— Cet ^ fr/mahjongg.xml:291: parser error : Entity 'mdash' not defined Ctrl-Q</keysym></shortcut><guimenuitem>Quitter</guimenuitem></menuchoice>— ^ fr/mahjongg.xml:302: parser error : Entity 'mdash' not defined <para><menuchoice><guimenuitem>Barre d'outils</guimenuitem></menuchoice>— ^ fr/mahjongg.xml:305: parser error : Entity 'mdash' not defined <para><menuchoice><guimenuitem>Préférences</guimenuitem></menuchoice>— ^ fr/mahjongg.xml:315: parser error : Entity 'mdash' not defined ym>F1</keysym></shortcut><guimenuitem>Sommaire</guimenuitem></menuchoice>— ^ fr/mahjongg.xml:318: parser error : Entity 'mdash' not defined <para><menuchoice><guimenuitem>À propos</guimenuitem></menuchoice>— C ^ fr/mahjongg.xml:354: parser error : Entity 'mdash' not defined <para><guilabel>Jeu de pièces :</guilabel>— Choisissez l'apparence de ^ fr/mahjongg.xml:357: parser error : Entity 'mdash' not defined <para><guilabel>Sélectionner la carte :</guilabel>— Modifie la diffic ^ fr/mahjongg.xml:360: parser error : Entity 'mdash' not defined <para><guilabel>Couleur d'arrière-plan :</guilabel>— Modifie la coule ^ oc/mahjongg.xml:470: parser error : Entity 'mdash' not defined </menuchoice> — ^ oc/mahjongg.xml:478: parser error : Entity 'mdash' not defined </menuchoice> — ^ oc/mahjongg.xml:486: parser error : Entity 'mdash' not defined </menuchoice> — ^ oc/mahjongg.xml:498: parser error : Entity 'mdash' not defined </menuchoice> — ^ oc/mahjongg.xml:510: parser error : Entity 'mdash' not defined </menuchoice> — ^ oc/mahjongg.xml:521: parser error : Entity 'mdash' not defined </menuchoice> — ^ oc/mahjongg.xml:529: parser error : Entity 'mdash' not defined </menuchoice> — ^ oc/mahjongg.xml:544: parser error : Entity 'mdash' not defined </menuchoice> — ^ oc/mahjongg.xml:563: parser error : Entity 'mdash' not defined </menuchoice> — ^ oc/mahjongg.xml:577: parser error : Entity 'mdash' not defined </menuchoice> — ^ oc/mahjongg.xml:599: parser error : Entity 'mdash' not defined </menuchoice> — ^ oc/mahjongg.xml:607: parser error : Entity 'mdash' not defined </menuchoice> — ^ oc/mahjongg.xml:659: parser error : Entity 'mdash' not defined <guilabel>Tile Set:</guilabel> — ^ oc/mahjongg.xml:665: parser error : Entity 'mdash' not defined <guilabel>Select Map:</guilabel> — ^ oc/mahjongg.xml:674: parser error : Entity 'mdash' not defined <guilabel>Background Color:</guilabel> — ^ sv/mahjongg.xml:406: parser error : Entity 'mdash' not defined </menuchoice> — ^ sv/mahjongg.xml:414: parser error : Entity 'mdash' not defined </menuchoice> — ^ sv/mahjongg.xml:422: parser error : Entity 'mdash' not defined </menuchoice> — ^ sv/mahjongg.xml:434: parser error : Entity 'mdash' not defined </menuchoice> — ^ sv/mahjongg.xml:446: parser error : Entity 'mdash' not defined </menuchoice> — ^ sv/mahjongg.xml:457: parser error : Entity 'mdash' not defined </menuchoice> — ^ sv/mahjongg.xml:465: parser error : Entity 'mdash' not defined </menuchoice> — ^ sv/mahjongg.xml:480: parser error : Entity 'mdash' not defined </menuchoice> — ^ sv/mahjongg.xml:496: parser error : Entity 'mdash' not defined </menuchoice> — ^ sv/mahjongg.xml:510: parser error : Entity 'mdash' not defined </menuchoice> — ^ sv/mahjongg.xml:529: parser error : Entity 'mdash' not defined </menuchoice> — ^ sv/mahjongg.xml:537: parser error : Entity 'mdash' not defined </menuchoice> — ^ sv/mahjongg.xml:588: parser error : Entity 'mdash' not defined <guilabel>Tile Set:</guilabel> — ^ sv/mahjongg.xml:594: parser error : Entity 'mdash' not defined <guilabel>Select Map:</guilabel> — ^ sv/mahjongg.xml:603: parser error : Entity 'mdash' not defined <guilabel>Background Color:</guilabel> — ^ es/gtali.xml:158: parser error : Entity 'mdash' not defined equivocada se le puntuará en concordancia. (Digamos que obtiene yahtzee — ^ es/gtali.xml:158: parser error : Entity 'mdash' not defined rá en concordancia. (Digamos que obtiene yahtzee —5 del mismo tipo— ^ C/glines.xml:225: parser error : Entity 'hellip' not defined let us not anticipate…). You can then select its destination by ^ en_GB/glines.xml:188: parser error : Entity 'hellip' not defined r doing something else depending on the theme, but let us not anticipate… ^ es/glines.xml:188: parser error : Entity 'hellip' not defined ar (o a hacer alguna otra cosa dependiendo del tema, pero no se anticipe… ^ oc/glines.xml:293: parser error : Entity 'hellip' not defined let us not anticipate…). You can then select its destination by ^ sv/glines.xml:188: parser error : Entity 'hellip' not defined gör någonting annat beroende på temat, men låt oss inte förutse det… ^ C/gnobots2.xml:302: parser error : Entity 'mdash' not defined </menuchoice> — starts a new game of GNOME Robots. ^ C/gnobots2.xml:311: parser error : Entity 'mdash' not defined </menuchoice> — shows the higher scores. ^ C/gnobots2.xml:336: parser error : Entity 'mdash' not defined <guimenuitem>Teleport</guimenuitem>— ^ C/gnobots2.xml:342: parser error : Entity 'mdash' not defined <guimenuitem>Random</guimenuitem>— teleports you in ^ C/gnobots2.xml:348: parser error : Entity 'mdash' not defined <guimenuitem>Wait</guimenuitem>— places you in wait mode. ^ C/gnobots2.xml:382: parser error : Entity 'mdash' not defined <guimenuitem>Contents</guimenuitem>— ^ C/gnobots2.xml:388: parser error : Entity 'mdash' not defined <guimenuitem>About</guimenuitem>— shows ^ C/gnobots2.xml:487: parser error : Entity 'mdash' not defined <guimenuitem>Game</guimenuitem> — This page allows ^ C/gnobots2.xml:529: parser error : Entity 'mdash' not defined <guimenuitem>Appearance</guimenuitem> — This page ^ C/gnobots2.xml:539: parser error : Entity 'mdash' not defined <guimenuitem>Keyboard</guimenuitem> — ^ fr/gnobots2.xml:210: parser error : Entity 'mdash' not defined Ctrl-N</keysym></shortcut><guimenuitem>Nouveau</guimenuitem></menuchoice>— ^ fr/gnobots2.xml:214: parser error : Entity 'mdash' not defined <para><menuchoice><guimenuitem>Scores</guimenuitem></menuchoice>— aff ^ fr/gnobots2.xml:234: parser error : Entity 'mdash' not defined <para><guimenuitem>Téléportation</guimenuitem>— vous télép ^ fr/gnobots2.xml:237: parser error : Entity 'mdash' not defined <para><guimenuitem>Aléatoirement</guimenuitem>— vous téléport ^ fr/gnobots2.xml:240: parser error : Entity 'mdash' not defined <para><guimenuitem>Attente</guimenuitem>— vous place en mode Att ^ fr/gnobots2.xml:262: parser error : Entity 'mdash' not defined <para><guimenuitem>Sommaire</guimenuitem>— affiche ce manuel.< ^ fr/gnobots2.xml:265: parser error : Entity 'mdash' not defined <para><guimenuitem>À propos</guimenuitem>— affiche des informat ^ fr/gnobots2.xml:310: parser error : Entity 'mdash' not defined <para><guimenuitem>Jeu</guimenuitem>— Cet onglet permet de choisir ^ fr/gnobots2.xml:318: parser error : Entity 'mdash' not defined <para><guimenuitem>Appearance</guimenuitem>— Cet onglet permet de ^ fr/gnobots2.xml:323: parser error : Entity 'mdash' not defined <para><guimenuitem>Keyboard</guimenuitem>— Cet onglet permet de d ^ oc/gnobots2.xml:365: parser error : Entity 'mdash' not defined </menuchoice> — starts a new game of GNOME Robots. ^ oc/gnobots2.xml:374: parser error : Entity 'mdash' not defined </menuchoice> — shows the higher scores. ^ oc/gnobots2.xml:399: parser error : Entity 'mdash' not defined <guimenuitem>Teleport</guimenuitem>— ^ oc/gnobots2.xml:405: parser error : Entity 'mdash' not defined <guimenuitem>Random</guimenuitem>— teleports you in ^ oc/gnobots2.xml:411: parser error : Entity 'mdash' not defined <guimenuitem>Wait</guimenuitem>— places you in wait mode. ^ oc/gnobots2.xml:445: parser error : Entity 'mdash' not defined <guimenuitem>Contents</guimenuitem>— ^ oc/gnobots2.xml:451: parser error : Entity 'mdash' not defined <guimenuitem>About</guimenuitem>— shows ^ oc/gnobots2.xml:550: parser error : Entity 'mdash' not defined <guimenuitem>Game</guimenuitem> — This page allows ^ oc/gnobots2.xml:592: parser error : Entity 'mdash' not defined <guimenuitem>Appearance</guimenuitem> — This page ^ oc/gnobots2.xml:602: parser error : Entity 'mdash' not defined <guimenuitem>Keyboard</guimenuitem> — ^ sv/gnobots2.xml:306: parser error : Entity 'mdash' not defined </menuchoice> — starts a new game of GNOME Robots. ^ sv/gnobots2.xml:315: parser error : Entity 'mdash' not defined </menuchoice> — shows the higher scores. ^ sv/gnobots2.xml:340: parser error : Entity 'mdash' not defined <guimenuitem>Teleport</guimenuitem>— ^ sv/gnobots2.xml:346: parser error : Entity 'mdash' not defined <guimenuitem>Random</guimenuitem>— teleports you in ^ sv/gnobots2.xml:352: parser error : Entity 'mdash' not defined <guimenuitem>Wait</guimenuitem>— places you in wait mode. ^ sv/gnobots2.xml:386: parser error : Entity 'mdash' not defined <guimenuitem>Contents</guimenuitem>— ^ sv/gnobots2.xml:392: parser error : Entity 'mdash' not defined <guimenuitem>About</guimenuitem>— shows ^ sv/gnobots2.xml:491: parser error : Entity 'mdash' not defined <guimenuitem>Game</guimenuitem> — This page allows ^ sv/gnobots2.xml:533: parser error : Entity 'mdash' not defined <guimenuitem>Appearance</guimenuitem> — This page ^ sv/gnobots2.xml:543: parser error : Entity 'mdash' not defined <guimenuitem>Keyboard</guimenuitem> — ^ menu.c: In function ‘connect_toolbar_toggle’: menu.c:416: warning: passing argument 1 of ‘toggle_toolbar_cb’ from incompatible pointer type boni.c: In function ‘gnibbles_boni_add_bonus’: boni.c:74: warning: implicit declaration of function ‘games_sound_play’ boni.c:74: warning: nested extern declaration of ‘games_sound_play’ worm.c: In function ‘gnibbles_worm_grok_bonus’: worm.c:243: warning: implicit declaration of function ‘games_sound_play’ worm.c:243: warning: nested extern declaration of ‘games_sound_play’ properties.c: In function ‘gnibbles_properties_update’: properties.c:113: warning: implicit declaration of function ‘games_sound_enable’ properties.c:113: warning: nested extern declaration of ‘games_sound_enable’ C/gnome-sudoku.xml:158: parser error : Entity 'ldquo' not defined you ask yourself, “How can I fit all the numbers in this ^ C/gnome-sudoku.xml:159: parser error : Entity 'rdquo' not defined box?” On the other hand, you ask yourself, “What ^ C/gnome-sudoku.xml:159: parser error : Entity 'ldquo' not defined box?” On the other hand, you ask yourself, “What ^ C/gnome-sudoku.xml:161: parser error : Entity 'rdquo' not defined other numbers in the same row, column, or 3x3 box?” ^ C/gnome-sudoku.xml:356: parser error : Entity 'ldquo' not defined <para>To write notes (also known as “pencilmarks”) in a square ^ C/gnome-sudoku.xml:356: parser error : Entity 'rdquo' not defined <para>To write notes (also known as “pencilmarks”) in a square ^ C/gnome-sudoku.xml:562: parser error : Entity 'ldquo' not defined s in solving the puzzle that the computer had to use trial-and-error, or “ ^ C/gnome-sudoku.xml:562: parser error : Entity 'rdquo' not defined e puzzle that the computer had to use trial-and-error, or “guessing” ^ oc/gnome-sudoku.xml:227: parser error : Entity 'ldquo' not defined you ask yourself, “How can I fit all the numbers in this ^ oc/gnome-sudoku.xml:228: parser error : Entity 'rdquo' not defined box?” On the other hand, you ask yourself, “What ^ oc/gnome-sudoku.xml:228: parser error : Entity 'ldquo' not defined box?” On the other hand, you ask yourself, “What ^ oc/gnome-sudoku.xml:230: parser error : Entity 'rdquo' not defined other numbers in the same row, column, or 3x3 box?” ^ oc/gnome-sudoku.xml:424: parser error : Entity 'ldquo' not defined <para>To write notes (also known as “pencilmarks”) in a square ^ oc/gnome-sudoku.xml:424: parser error : Entity 'rdquo' not defined <para>To write notes (also known as “pencilmarks”) in a square ^ oc/gnome-sudoku.xml:626: parser error : Entity 'ldquo' not defined s in solving the puzzle that the computer had to use trial-and-error, or “ ^ oc/gnome-sudoku.xml:626: parser error : Entity 'rdquo' not defined e puzzle that the computer had to use trial-and-error, or “guessing” ^ sv/gnome-sudoku.xml:165: parser error : Entity 'ldquo' not defined you ask yourself, “How can I fit all the numbers in this ^ sv/gnome-sudoku.xml:166: parser error : Entity 'rdquo' not defined box?” On the other hand, you ask yourself, “What ^ sv/gnome-sudoku.xml:166: parser error : Entity 'ldquo' not defined box?” On the other hand, you ask yourself, “What ^ sv/gnome-sudoku.xml:168: parser error : Entity 'rdquo' not defined other numbers in the same row, column, or 3x3 box?” ^ sv/gnome-sudoku.xml:362: parser error : Entity 'ldquo' not defined <para>To write notes (also known as “pencilmarks”) in a square ^ sv/gnome-sudoku.xml:362: parser error : Entity 'rdquo' not defined <para>To write notes (also known as “pencilmarks”) in a square ^ sv/gnome-sudoku.xml:564: parser error : Entity 'ldquo' not defined s in solving the puzzle that the computer had to use trial-and-error, or “ ^ sv/gnome-sudoku.xml:564: parser error : Entity 'rdquo' not defined e puzzle that the computer had to use trial-and-error, or “guessing” ^
Three of these warnings have been removed (missing includes): http://svn.gnome.org/viewcvs/gnome-games?view=revision&revision=6769
Created attachment 96772 [details] [review] Potential fix for pointer airthmetic warning This might be right. I cast to char* for simplicity and to match what seems to be the file standard, but do we prefer guint8 or some such?
Created attachment 96773 [details] [review] potential fix for gnome-sudko xml warnings Here is a potential patch for gnome-sudoku for the ?dquo characters. If this approach seems correct, I'd like to expand the patch scope to include the other entities and files in gnome-games.
I should also add to comment #3, if these definitions will be reused is there a better place to share then instead of modifying each xml file.
I guess the entity problem is a generic problem with gnome-doc-utils, and should be filed as an extra bug there...
Right. As I understand it, gnome-doc-utils includes a template that packages copy and modify to suit their needs. The new gnome-doc-utils would help future projects. However, that wouldn't fix the warnings in gnome-games. Should I expand the patch to fix instances here?
*** Bug 386843 has been marked as a duplicate of this bug. ***
The entity problem has been filed in g-d-u as bug 403950.
Re-assigning to new default owner.
I talked to shaunm on irc about this and he did not object to doing what brian suggests. I think that we should do this now as those hundreds of "Entity not defined" messages make new warnings harder to spot.
during ./autogen.sh gnome-doc-utils.make is copied into top_srcdir. If --loaddtd is added to xmllint at line 148 then the warnings go away.
I fixed the last of the XML errors by replacing the entities with their UTF-8 equivalents. Relevant logs below: Date: Fri Jan 18 15:48:24 2008 +0000 Replace all occurances of — with UTF-8 equiv. in the docs. This is needed because g-d-u does not use --loaddtd and so distcheck is quite angry during the documentation phase. There may be other XML entity removals coming in the future. git-svn-id: svn+ssh://svn.gnome.org/svn/gnome-games/trunk@8583 blackjack/help/C/blackjack.xml | 16 +++++----- blackjack/help/ca/ca.po | 32 ++++++++++---------- blackjack/help/de/de.po | 32 ++++++++++---------- blackjack/help/el/el.po | 32 ++++++++++---------- blackjack/help/es/es.po | 16 +++++----- blackjack/help/fr/fr.po | 32 ++++++++++---------- blackjack/help/oc/oc.po | 16 +++++----- blackjack/help/sv/sv.po | 32 ++++++++++---------- gnibbles/help/sv/sv.po | 16 +++++----- gnobots2/help/C/gnobots2.xml | 20 ++++++------ gnobots2/help/ca/ca.po | 42 ++++++++++++++-------------- gnobots2/help/de/de.po | 40 +++++++++++++------------- gnobots2/help/es/es.po | 20 ++++++------ gnobots2/help/fr/fr.po | 40 +++++++++++++------------- gnobots2/help/it/it.po | 40 +++++++++++++------------- gnobots2/help/oc/oc.po | 20 ++++++------ gnobots2/help/sv/sv.po | 14 ++++---- gnomine/help/es/es.po | 2 +- gtali/help/ca/ca.po | 2 +- gtali/help/es/es.po | 2 +- mahjongg/help/C/mahjongg.xml | 30 ++++++++++---------- mahjongg/help/ca/ca.po | 60 ++++++++++++++++++++-------------------- mahjongg/help/de/de.po | 60 ++++++++++++++++++++-------------------- mahjongg/help/el/el.po | 58 +++++++++++++++++++------------------- mahjongg/help/es/es.po | 30 ++++++++++---------- mahjongg/help/fr/fr.po | 60 ++++++++++++++++++++-------------------- mahjongg/help/it/it.po | 60 ++++++++++++++++++++-------------------- mahjongg/help/oc/oc.po | 30 ++++++++++---------- mahjongg/help/sv/sv.po | 32 ++++++++++---------- 29 files changed, 443 insertions(+), 443 deletions(-) Date: Sun Jan 18 21:08:22 2009 +0000 Continue r8583 entity removal--this time with left and right quotes Rationalle in commit message for r8583 git-svn-id: svn+ssh://svn.gnome.org/svn/gnome-games/trunk@8586 gnome-sudoku/help/C/gnome-sudoku.xml | 10 +++++----- gnome-sudoku/help/ca/ca.po | 12 ++++++------ gnome-sudoku/help/da/da.po | 22 +++++++++++----------- gnome-sudoku/help/de/de.po | 20 ++++++++++---------- gnome-sudoku/help/el/el.po | 14 +++++++------- gnome-sudoku/help/es/es.po | 12 ++++++------ gnome-sudoku/help/fr/fr.po | 12 ++++++------ gnome-sudoku/help/it/it.po | 12 ++++++------ gnome-sudoku/help/oc/oc.po | 12 ++++++------ gnome-sudoku/help/pt_BR/pt_BR.po | 12 ++++++------ gnome-sudoku/help/ru/ru.po | 12 ++++++------ gnome-sudoku/help/sv/sv.po | 6 +++--- 12 files changed, 78 insertions(+), 78 deletions(-) Date: Sun Jan 18 21:13:38 2009 +0000 Finish the entity removal started with r8583--ellipsis now Rationalle for change in commit message for r8583 git-svn-id: svn+ssh://svn.gnome.org/svn/gnome-games/trunk@8587 blackjack/help/C/blackjack.xml | 2 +- blackjack/help/ca/ca.po | 4 ++-- blackjack/help/de/de.po | 2 +- blackjack/help/el/el.po | 4 ++-- blackjack/help/es/es.po | 2 +- blackjack/help/fr/fr.po | 2 +- blackjack/help/oc/oc.po | 2 +- blackjack/help/sv/sv.po | 4 ++-- glines/help/C/glines.xml | 2 +- glines/help/ca/ca.po | 4 ++-- glines/help/de/de.po | 2 +- glines/help/en_GB/en_GB.po | 4 ++-- glines/help/es/es.po | 4 ++-- glines/help/fr/fr.po | 2 +- glines/help/it/it.po | 2 +- glines/help/oc/oc.po | 2 +- glines/help/ru/ru.po | 2 +- glines/help/sv/sv.po | 4 ++-- glines/help/tr/tr.po | 4 ++-- mahjongg/help/sv/sv.po | 16 ++++++++-------- same-gnome/help/C/same-gnome.xml | 2 +- 21 files changed, 36 insertions(+), 36 deletions(-)
There are still many warnings in the original report in comment #1 which haven't been fixed.
I have added the remaining warnings below. The first batch is gnuchess and the second ggz-gtk. games-files and eggdesktopfiles warnings are from a glib bug. The only real gnome-games warning is the last one in gnotravex. I'm taking a look at it now. epd.c: In function ‘ReadEPDFile’: epd.c:74: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result input.c: In function ‘getline_standard’: input.c:93: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result lexpgn.c: In function ‘yylex’: lexpgn.l:419: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result about.c: In function ‘about_draw_text’: about.c:305: warning: array subscript is above array bounds about.c: In function ‘about_realize’: about.c:139: warning: array subscript is above array bounds chat.c: In function ‘chat_display_server’: chat.c:265: warning: pointer targets in passing argument 2 of ‘gtk_xtext_append_indent’ differ in signedness chat.c:265: warning: pointer targets in passing argument 4 of ‘gtk_xtext_append_indent’ differ in signedness chat.c:276: warning: pointer targets in passing argument 2 of ‘gtk_xtext_append_indent’ differ in signedness chat.c:276: warning: pointer targets in passing argument 4 of ‘gtk_xtext_append_indent’ differ in signedness chat.c:294: warning: pointer targets in passing argument 2 of ‘gtk_xtext_append_indent’ differ in signedness chat.c:294: warning: pointer targets in passing argument 4 of ‘gtk_xtext_append_indent’ differ in signedness chat.c:311: warning: pointer targets in passing argument 2 of ‘gtk_xtext_append_indent’ differ in signedness chat.c:311: warning: pointer targets in passing argument 4 of ‘gtk_xtext_append_indent’ differ in signedness chat.c:320: warning: pointer targets in passing argument 2 of ‘gtk_xtext_append_indent’ differ in signedness chat.c:320: warning: pointer targets in passing argument 4 of ‘gtk_xtext_append_indent’ differ in signedness chat.c: In function ‘chat_display_local’: chat.c:348: warning: pointer targets in passing argument 2 of ‘gtk_xtext_append_indent’ differ in signedness chat.c:348: warning: pointer targets in passing argument 4 of ‘gtk_xtext_append_indent’ differ in signedness chat.c:354: warning: pointer targets in passing argument 2 of ‘gtk_xtext_append_indent’ differ in signedness chat.c:354: warning: pointer targets in passing argument 4 of ‘gtk_xtext_append_indent’ differ in signedness chat.c:359: warning: pointer targets in passing argument 2 of ‘gtk_xtext_append_indent’ differ in signedness chat.c:359: warning: pointer targets in passing argument 4 of ‘gtk_xtext_append_indent’ differ in signedness chat.c: In function ‘chat_enter’: chat.c:541: warning: pointer targets in passing argument 2 of ‘gtk_xtext_append_indent’ differ in signedness chat.c:541: warning: pointer targets in passing argument 4 of ‘gtk_xtext_append_indent’ differ in signedness chat.c: In function ‘chat_part’: chat.c:579: warning: pointer targets in passing argument 2 of ‘gtk_xtext_append_indent’ differ in signedness chat.c:579: warning: pointer targets in passing argument 4 of ‘gtk_xtext_append_indent’ differ in signedness In file included from xtext.c:61: xtext.h:36:1: warning: "XTEXT_MARK_FG" redefined In file included from xtext.c:49: xtext-ggz.h:61:1: warning: this is the location of the previous definition In file included from xtext.c:61: xtext.h:37:1: warning: "XTEXT_MARK_BG" redefined In file included from xtext.c:49: xtext-ggz.h:62:1: warning: this is the location of the previous definition In file included from xtext.c:61: xtext.h:38:1: warning: "XTEXT_FG" redefined In file included from xtext.c:49: xtext-ggz.h:63:1: warning: this is the location of the previous definition In file included from xtext.c:61: xtext.h:39:1: warning: "XTEXT_BG" redefined In file included from xtext.c:49: xtext-ggz.h:64:1: warning: this is the location of the previous definition In file included from xtext.c:61: xtext.h:40:1: warning: "XTEXT_MARKER" redefined In file included from xtext.c:49: xtext-ggz.h:65:1: warning: this is the location of the previous definition xtext.c: In function ‘backend_get_text_width’: xtext.c:526: warning: pointer targets in passing argument 2 of ‘pango_layout_set_text’ differ in signedness xtext.c: In function ‘backend_get_char_width’: xtext.c:544: warning: pointer targets in passing argument 2 of ‘pango_layout_set_text’ differ in signedness xtext.c: In function ‘gtk_xtext_get_word’: xtext.c:1826: warning: pointer targets in return differ in signedness xtext.c: In function ‘gtk_xtext_motion_notify’: xtext.c:1942: warning: pointer targets in assignment differ in signedness xtext.c:1945: warning: pointer targets in passing argument 2 of ‘xtext->urlcheck_function’ differ in signedness xtext.c: In function ‘gtk_xtext_button_release’: xtext.c:2097: warning: pointer targets in assignment differ in signedness xtext.c: In function ‘gtk_xtext_button_press’: xtext.c:2121: warning: pointer targets in assignment differ in signedness xtext.c: In function ‘gtk_xtext_selection_get_text’: xtext.c:2268: warning: pointer targets in passing argument 1 of ‘gtk_xtext_strip_color’ differ in signedness xtext.c:2268: warning: pointer targets in assignment differ in signedness xtext.c: In function ‘gtk_xtext_selection_get’: xtext.c:2320: warning: pointer targets in assignment differ in signedness xtext.c: In function ‘gtk_xtext_render_flush’: xtext.c:2661: warning: pointer targets in passing argument 6 of ‘backend_draw_text’ differ in signedness xtext.c: In function ‘shade_pixmap’: xtext.c:3440: warning: pointer targets in passing argument 4 of ‘XGetGeometry’ differ in signedness xtext.c:3440: warning: pointer targets in passing argument 5 of ‘XGetGeometry’ differ in signedness xtext.c: In function ‘gtk_xtext_save’: xtext.c:4168: warning: pointer targets in assignment differ in signedness xtext.c:4169: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result xtext.c:4170: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result xtext.c: In function ‘gtk_xtext_search’: xtext.c:4628: warning: pointer targets in passing argument 1 of ‘nocasestrstr’ differ in signedness xtext.c:4628: warning: pointer targets in passing argument 2 of ‘nocasestrstr’ differ in signedness xtext.c:4628: warning: pointer targets in assignment differ in signedness xtext.c:4631: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness xtext.c: In function ‘gtk_xtext_append_entry’: xtext.c:4739: warning: pointer targets in passing argument 4 of ‘gtk_xtext_text_width’ differ in signedness xtext.c: In function ‘gtk_xtext_append_indent’: xtext.c:4823: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness xtext.c:4826: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness xtext.c: In function ‘gtk_xtext_append’: xtext.c:4881: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness xtext.c: At top level: xtext.c:2490: warning: ‘gtk_xtext_conv_color’ defined but not used xtext.c: In function ‘gtk_xtext_render_flush’: xtext.c:2601: warning: ‘dest_y’ may be used uninitialized in this function xtext.c:2601: warning: ‘dest_x’ may be used uninitialized in this function games-files.c: In function ‘games_image_suffix_list_init’: games-files.c:170: warning: dereferencing type-punned pointer will break strict-aliasing rules games-files.c:176: warning: dereferencing type-punned pointer will break strict-aliasing rules games-files.c:205: warning: dereferencing type-punned pointer will break strict-aliasing rules eggdesktopfile.c: In function ‘egg_set_desktop_file’: eggdesktopfile.c:1433: warning: dereferencing type-punned pointer will break strict-aliasing rules eggdesktopfile.c:1456: warning: dereferencing type-punned pointer will break strict-aliasing rules eggdesktopfile.c: In function ‘egg_get_desktop_file’: eggdesktopfile.c:1472: warning: dereferencing type-punned pointer will break strict-aliasing rules eggdesktopfile.c:1474: warning: dereferencing type-punned pointer will break strict-aliasing rules gnotravex.c: In function ‘gui_draw_number’: gnotravex.c:864: warning: assignment discards qualifiers from pointer target type
The gnotravex warning is now fixed.
The XML entity problem has been fixed differenly, obsoleting this patch.
Currently we build without warnings with: -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -Wall -Waggregate-return -Wcast-align -Wclobbered -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wextra -Wempty-body -Wfloat-equal -Wformat-security -Wformat-y2k -Wignored-qualifiers -Winit-self -Winline -Winvalid-pch -Wmissing-declarations -Wmissing-include-dirs -Wmissing-format-attribute -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs -Wno-missing-field-initializers -Wno-unused-parameter -Wold-style-definition -Woverride-init -Wpacked -Wp,-D_FORTIFY_SOURCE=2 -Wpointer-arith -Wreturn-type -Wstrict-aliasing=2 -Wstrict-prototypes -Wsync-nand -Wtype-limits -Wuninitialized -Wundef -Wunsafe-loop-optimizations I'll attach the warnings from the remaining flags I've tried.
Created attachment 145985 [details] Compiler warnings This is building with --enable-omitgames=glchess as that is still broken (my fault. Will try and fix soon)
This bug is not really helpful anymore. We should always be on the lookout for new warnings...