Author: mir3x
Date: Sun Feb  5 16:47:44 2017
New Revision: 34976

URL: http://svn.gna.org/viewcvs/freeciv?rev=34976&view=rev
Log:
Qt client - fixed clang warning - 'has road' - Wsometimes-uninitialized

See gna bug #25487


Modified:
    trunk/client/gui-qt/hudwidget.cpp

Modified: trunk/client/gui-qt/hudwidget.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/hudwidget.cpp?rev=34976&r1=34975&r2=34976&view=diff
==============================================================================
--- trunk/client/gui-qt/hudwidget.cpp   (original)
+++ trunk/client/gui-qt/hudwidget.cpp   Sun Feb  5 16:47:44 2017
@@ -1572,7 +1572,7 @@
   int movement_cost;
   struct terrain *terr;
   QString ret, t, move_text;
-  bool has_road;
+  bool has_road = false;
 
   terr = ptile->terrain;
   ret = QString(_("Terrain: %1\n")).arg(tile_get_info_text(ptile, TRUE, 0));


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to