[Freeciv-Dev] [bug #23993] Clang 3.7 warnings in trunk

2015-10-28 Thread Marko Lindqvist
Follow-up Comment #3, bug #23993 (project freeciv):

Autosettlers issue now in bug #23998

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #23993] Clang 3.7 warnings in trunk

2015-10-27 Thread Louis Moureaux
URL:
  

 Summary: Clang 3.7 warnings in trunk
 Project: Freeciv
Submitted by: louis94
Submitted on: mar. 27 oct. 2015 21:31:48 UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
  Status: None
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Release: 
 Discussion Lock: Any
Operating System: None
 Planned Release: 

___

Details:

There are three of them (release build):

In city.c

city.c:1426:43: warning: implicit conversion from enumeration type 'enum
diplrel_other' to different enumeration type 'enum citytile_type'
[-Wenum-conversion]
  tile_is_foreign.source.value.citytile = DRO_FOREIGN;
~ ^~~


In nation.c

nation.c:69:20: warning: unused function 'nation_check' [-Wunused-function]
static inline bool nation_check(const struct nation_type *pnation,
   ^


In autosettlers.c

autosettlers.c:888:7: warning: variable 'best_act' is used uninitialized
whenever 'if' condition is false [-Wsometimes-uninitialized]
  if (unit_has_type_flag(punit, UTYF_SETTLERS)) {
  ^~~~
autosettlers.c:901:38: note: uninitialized use occurs here
  best_tile, best_act, _target,
 ^~~~
autosettlers.c:888:3: note: remove the 'if' if its condition is always true
  if (unit_has_type_flag(punit, UTYF_SETTLERS)) {
  ^~
autosettlers.c:837:3: note: variable 'best_act' is declared here
  enum unit_activity best_act;
  ^






___

Reply to this item at:

  

___
  Message posté via/par Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev