<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40265 >
This fixes compiler warning produced on optimization level O2 (when several functions are inlined to one). - ML
diff -Nurd -X.diff_ignore freeciv/client/goto.c freeciv/client/goto.c --- freeciv/client/goto.c 2008-04-25 03:29:36.000000000 +0300 +++ freeciv/client/goto.c 2008-06-11 13:32:31.000000000 +0300 @@ -1213,6 +1213,14 @@ struct unit_order order; order.order = goto_last_order; + order.dir = -1; + order.activity = ACTIVITY_LAST; + + /* ORDER_MOVE would require real direction, + * ORDER_ACTIVITY would require real activity */ + assert(goto_last_order != ORDER_MOVE + && goto_last_order != ORDER_ACTIVITY); + send_goto_path(punit, path, &order); } pf_destroy_path(path);
_______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev