Complete.Org: Mailing Lists: Archives: freeciv-dev: June 1999:
Re: [Freeciv-Dev] Programing style
Home

Re: [Freeciv-Dev] Programing style

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv Development <freeciv-dev@xxxxxxxxxxx>
Subject: Re: [Freeciv-Dev] Programing style
From: Peter Schaefer <schaefer@xxxxxx>
Date: Wed, 09 Jun 1999 09:17:42 +0200

David Pfitzner wrote:
> 
> Andy Black wrote:
> 
> > During my work I have noticed several programing style problems

> 
> > 3. lack of function prototypes
> >       This is a minor problem that generates errors that can be turned
> > off
> 
> I consider missing prototypes a serious problem; please report any
> such.  If they are system prototypes, that could be more difficult
> to deal with, but could also indicate portability issues we need
> to deal with.
> 

I've run make with gcc -pedantic -Wmissing-prototypes.
Output is attached.

> > 4. implicit enum conversions
> >       implicit enum conversions ar things like feeding an int to a
> > function that requires an enum or returning an int where an enum is
> > wanted.
> >       one major source is the currently_building item in the city
> > struct. if c suports unions, I would do the folowing:
> 

manual quote:
  Normally GNU C++ allows  conversion  of enum to int, 
  but not the other way around.
        I did not even see a switch for warning about it.

-- 
Peter Schaefer - schaefer@xxxxxx, schaefer@xxxxxx
"FermaT, by Software Migrations Ltd, is an industrial strength program
transformation system used to migrate IBM 370 Assembler modules into 
equivalent readable and maintainable COBOL programs, and to help solve 
the year 2000 challenge for IBM 370 Assembler code."
make all-recursive
make[1]: Entering directory `/home/schaefer/freeciv'
Making all in data
make[2]: Entering directory `/home/schaefer/freeciv/data'
Making all in default
make[3]: Entering directory `/home/schaefer/freeciv/data/default'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/schaefer/freeciv/data/default'
Making all in civ1
make[3]: Entering directory `/home/schaefer/freeciv/data/civ1'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/schaefer/freeciv/data/civ1'
Making all in classic
make[3]: Entering directory `/home/schaefer/freeciv/data/classic'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/schaefer/freeciv/data/classic'
make[2]: Leaving directory `/home/schaefer/freeciv/data'
Making all in common
make[2]: Entering directory `/home/schaefer/freeciv/common'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I..   -g -O2 -Wall 
-c capability.c
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I..   -g -O2 -Wall 
-c city.c
In file included from city.c:21:
log.h:100: warning: ANSI C does not allow macro with variable arguments
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I..   -g -O2 -Wall 
-c diptreaty.c
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I..   -g -O2 -Wall 
-c game.c
In file included from game.c:22:
log.h:100: warning: ANSI C does not allow macro with variable arguments
game.c:302: warning: no previous prototype for `initialize_globals'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I..   -g -O2 -Wall 
-c genlist.c
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I..   -g -O2 -Wall 
-c log.c
In file included from log.c:17:
log.h:100: warning: ANSI C does not allow macro with variable arguments
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I..   -g -O2 -Wall 
-c map.c
In file included from map.c:20:
log.h:100: warning: ANSI C does not allow macro with variable arguments
map.c:559: warning: no previous prototype for `tile_move_cost_ptrs'
map.c:588: warning: no previous prototype for `tile_move_cost_ai'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I..   -g -O2 -Wall 
-c packets.c
In file included from packets.c:23:
log.h:100: warning: ANSI C does not allow macro with variable arguments
In file included from /usr/include/sys/socket.h:34,
                 from /usr/include/netinet/in.h:24,
                 from packets.c:19:
/usr/include/socketbits.h:173: warning: ANSI C forbids zero-size array 
`__cmsg_data'
packets.c:332: warning: no previous prototype for `put_city_map'
packets.c:349: warning: no previous prototype for `get_city_map'
packets.c:374: warning: no previous prototype for `put_bit_string'
packets.c:394: warning: no previous prototype for `get_bit_string'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I..   -g -O2 -Wall 
-c player.c
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I..   -g -O2 -Wall 
-c mem.c
In file included from mem.c:23:
log.h:100: warning: ANSI C does not allow macro with variable arguments
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I..   -g -O2 -Wall 
-c registry.c
In file included from registry.c:120:
log.h:100: warning: ANSI C does not allow macro with variable arguments
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I..   -g -O2 -Wall 
-c sbuffer.c
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I..   -g -O2 -Wall 
-c shared.c
In file included from shared.c:21:
log.h:100: warning: ANSI C does not allow macro with variable arguments
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I..   -g -O2 -Wall 
-c spaceship.c
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I..   -g -O2 -Wall 
-c tech.c
tech.c:78: warning: no previous prototype for `tech_goal_turns_rec'
tech.c:105: warning: no previous prototype for `get_next_tech_rec'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I..   -g -O2 -Wall 
-c unit.c
In file included from unit.c:23:
log.h:100: warning: ANSI C does not allow macro with variable arguments
unit.c:452: warning: no previous prototype for `is_heli_unittype'
unit.c: In function `best_role_unit':
unit.c:1128: warning: `u' might be used uninitialized in this function
rm -f libcivcommon.a
ar cru libcivcommon.a capability.o city.o diptreaty.o game.o genlist.o log.o 
map.o packets.o player.o mem.o registry.o sbuffer.o shared.o spaceship.o tech.o 
unit.o 
ranlib libcivcommon.a
make[2]: Leaving directory `/home/schaefer/freeciv/common'
Making all in ai
make[2]: Entering directory `/home/schaefer/freeciv/ai'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../server  -g -O2 -Wall -c advattitude.c
advattitude.c:24: warning: no previous prototype for 
`attitude_advisor_choose_tech'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../server  -g -O2 -Wall -c advdomestic.c
In file included from advdomestic.c:28:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
advdomestic.c:38: warning: no previous prototype for `ai_best_tile_value'
advdomestic.c:63: warning: no previous prototype for `building_value'
advdomestic.c:93: warning: no previous prototype for `ocean_workers'
advdomestic.c:106: warning: no previous prototype for `railroad_trade'
advdomestic.c:117: warning: no previous prototype for `farmland_food'
advdomestic.c:128: warning: no previous prototype for `pollution_cost'
advdomestic.c:177: warning: no previous prototype for `ai_eval_buildings'
advdomestic.c:479: warning: no previous prototype for 
`domestic_advisor_choose_build'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../server  -g -O2 -Wall -c advforeign.c
advforeign.c:25: warning: no previous prototype for 
`foreign_advisor_choose_tech'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../server  -g -O2 -Wall -c advisland.c
advisland.c:20: warning: no previous prototype for `island_adjust_build_choice'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../server  -g -O2 -Wall -c advleader.c
advleader.c:24: warning: no previous prototype for `leader_adjust_tech_choice'
advleader.c:39: warning: no previous prototype for `leader_adjust_build_choice'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../server  -g -O2 -Wall -c advmilitary.c
In file included from advmilitary.c:26:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
advmilitary.c:39: warning: no previous prototype for 
`military_advisor_choose_tech'
advmilitary.c:46: warning: no previous prototype for `assess_defense_quadratic'
advmilitary.c:71: warning: no previous prototype for `assess_defense_unit'
advmilitary.c:86: warning: no previous prototype for `assess_defense_backend'
advmilitary.c:99: warning: no previous prototype for `assess_defense'
advmilitary.c:104: warning: no previous prototype for `assess_defense_igwall'
advmilitary.c:109: warning: no previous prototype for `dangerfunct'
advmilitary.c:138: warning: no previous prototype for `assess_danger_unit'
advmilitary.c:153: warning: no previous prototype for `assess_distance'
advmilitary.c:180: warning: no previous prototype for `assess_danger'
advmilitary.c:387: warning: no previous prototype for `unit_desirability'
advmilitary.c:409: warning: no previous prototype for `process_defender_want'
advmilitary.c:472: warning: no previous prototype for `process_attacker_want'
advmilitary.c:584: warning: no previous prototype for `kill_something_with'
advmilitary.c:822: warning: no previous prototype for `port_is_within'
advmilitary.c:847: warning: no previous prototype for 
`military_advisor_choose_build'
advmilitary.c:1004: warning: no previous prototype for 
`establish_city_distances'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../server  -g -O2 -Wall -c advscience.c
advscience.c:25: warning: no previous prototype for 
`science_advisor_choose_tech'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../server  -g -O2 -Wall -c advtrade.c
advtrade.c:24: warning: no previous prototype for `trade_advisor_choose_tech'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../server  -g -O2 -Wall -c aicity.c
In file included from aicity.c:43:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
aicity.c:54: warning: no previous prototype for `ai_do_build_unit'
aicity.c:60: warning: no previous prototype for `ai_city_build_defense'
aicity.c:69: warning: no previous prototype for `ai_city_build_settler'
aicity.c:78: warning: no previous prototype for `ai_city_build_peaceful_unit'
aicity.c:97: warning: no previous prototype for `ai_manage_buildings'
aicity.c:168: warning: no previous prototype for `ai_city_choose_build'
aicity.c:240: warning: no previous prototype for `ai_city_defender_value'
aicity.c:250: warning: no previous prototype for `try_to_sell_stuff'
aicity.c:262: warning: no previous prototype for `ai_new_spend_gold'
aicity.c:501: warning: no previous prototype for `worst_elvis_tile'
aicity.c:517: warning: no previous prototype for `is_defender_unit'
aicity.c:581: warning: no previous prototype for `ai_choose_attacker'
aicity.c:705: warning: no previous prototype for `adjust_build_choice'
aicity.c:716: warning: no previous prototype for `building_unwanted'
aicity.c:727: warning: no previous prototype for `ai_sell_obsolete_buildings'
aicity.c:764: warning: no previous prototype for `ai_find_elvis_pos'
aicity.c:844: warning: no previous prototype for `free_tiles'
aicity.c:852: warning: no previous prototype for `make_elvises'
aicity.c:880: warning: no previous prototype for `make_taxmen'
aicity.c:898: warning: no previous prototype for `make_scientists'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../server  -g -O2 -Wall -c aihand.c
In file included from aihand.c:35:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
aihand.c:164: warning: no previous prototype for `ai_calc_city_buy'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../server  -g -O2 -Wall -c aitech.c
In file included from aitech.c:22:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
aitech.c:39: warning: no previous prototype for `get_government_tech'
aitech.c:70: warning: no previous prototype for `get_wonder_tech'
aitech.c:84: warning: no previous prototype for `ai_next_tech_goal_default'
aitech.c:125: warning: no previous prototype for `adjust_tech_choice'
aitech.c:135: warning: no previous prototype for `find_prerequisites'
aitech.c:150: warning: no previous prototype for `ai_select_tech'
aitech.c:224: warning: no previous prototype for `ai_select_tech_goal'
aitech.c:229: warning: no previous prototype for `calculate_tech_turns'
aitech.c:238: warning: no previous prototype for `ai_next_tech_goal'
aitech.c:271: warning: no previous prototype for `ai_manage_tech'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../server  -g -O2 -Wall -c aitools.c
In file included from aitools.c:24:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../server  -g -O2 -Wall -c aiunit.c
In file included from aiunit.c:28:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
aiunit.c:77: warning: no previous prototype for `tile_is_accessible'
aiunit.c:245: warning: no previous prototype for `wonder_on_continent'
aiunit.c:254: warning: no previous prototype for `should_unit_change_homecity'
aiunit.c:289: warning: no previous prototype for `unit_belligerence_primitive'
aiunit.c:336: warning: no previous prototype for `stack_attack_value'
aiunit.c:346: warning: no previous prototype for `invasion_funct'
aiunit.c:364: warning: no previous prototype for `reinforcements_value'
aiunit.c:381: warning: no previous prototype for `reinforcements_cost'
aiunit.c:399: warning: no previous prototype for `is_my_turn'
aiunit.c:421: warning: no previous prototype for `ai_military_findvictim'
aiunit.c:512: warning: no previous prototype for `ai_military_bodyguard'
aiunit.c:581: warning: no previous prototype for `ai_military_gothere'
aiunit.c:1196: warning: no previous prototype for `find_nearest_friendly_port'
aiunit.c:1310: warning: no previous prototype for `ai_manage_ferryboat'
rm -f libcivai.a
ar cru libcivai.a advattitude.o advdomestic.o advforeign.o advisland.o 
advleader.o advmilitary.o advscience.o advtrade.o aicity.o aihand.o aitech.o 
aitools.o aiunit.o 
ranlib libcivai.a
make[2]: Leaving directory `/home/schaefer/freeciv/ai'
Making all in server
make[2]: Entering directory `/home/schaefer/freeciv/server'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c autoattack.c
In file included from autoattack.c:36:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
autoattack.c:58: warning: no previous prototype for `search_best_target'
autoattack.c:154: warning: no previous prototype for `auto_attack_with_unit'
autoattack.c:199: warning: no previous prototype for `auto_attack_city'
autoattack.c:211: warning: no previous prototype for `auto_attack_player'
autoattack.c:241: warning: no previous prototype for `auto_attack'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c cityhand.c
In file included from cityhand.c:36:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c citytools.c
In file included from citytools.c:16:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
citytools.c:674: warning: no previous prototype for `split_player'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c cityturn.c
In file included from cityturn.c:38:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c civserver.c
In file included from civserver.c:43:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
civserver.c:501: warning: no previous prototype for `is_game_over'
civserver.c:631: warning: no previous prototype for `do_apollo_program'
civserver.c:653: warning: no previous prototype for `update_pollution'
civserver.c:683: warning: no previous prototype for `before_end_year'
civserver.c:725: warning: no previous prototype for `end_turn'
civserver.c:761: warning: no previous prototype for `end_game'
civserver.c:819: warning: no previous prototype for `handle_report_request'
civserver.c:1157: warning: no previous prototype for `join_game_accept'
civserver.c:1183: warning: no previous prototype for `introduce_game_to_player'
civserver.c:1278: warning: no previous prototype for `reject_new_player'
civserver.c:1439: warning: no previous prototype for `generate_ai_players'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c console.c
In file included from console.c:18:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c diplhand.c
In file included from diplhand.c:28:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
diplhand.c:42: warning: no previous prototype for `find_treaty'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c gamehand.c
In file included from gamehand.c:34:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
gamehand.c:185: warning: no previous prototype for `calc_unit_ordering'
gamehand.c:216: warning: no previous prototype for `apply_unit_ordering'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c gamelog.c
In file included from gamelog.c:21:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
gamelog.c:98: warning: no previous prototype for `secompare1'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c gotohand.c
In file included from gotohand.c:25:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
gotohand.c:67: warning: no previous prototype for `init_warmap'
gotohand.c:192: warning: no previous prototype for `dir_ok'
gotohand.c:247: warning: no previous prototype for `could_be_my_zoc'
gotohand.c:344: warning: no previous prototype for `goto_tile_cost'
gotohand.c:370: warning: no previous prototype for `init_gotomap'
gotohand.c:385: warning: no previous prototype for `dir_ect'
gotohand.c:397: warning: no previous prototype for `find_the_shortest_path'
gotohand.c:555: warning: no previous prototype for `find_a_direction'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c handchat.c
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c mapgen.c
In file included from mapgen.c:21:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
mapgen.c:57: warning: no previous prototype for `full_map'
mapgen.c:69: warning: no previous prototype for `make_mountains'
mapgen.c:101: warning: no previous prototype for `make_polar'
mapgen.c:134: warning: no previous prototype for `make_desert'
mapgen.c:151: warning: no previous prototype for `make_forest'
mapgen.c:175: warning: no previous prototype for `make_forests'
mapgen.c:202: warning: no previous prototype for `make_swamps'
mapgen.c:232: warning: no previous prototype for `make_deserts'
mapgen.c:253: warning: no previous prototype for `make_river'
mapgen.c:319: warning: no previous prototype for `make_rivers'
mapgen.c:338: warning: no previous prototype for `make_plains'
mapgen.c:353: warning: no previous prototype for `make_passable'
mapgen.c:373: warning: no previous prototype for `make_fair'
mapgen.c:397: warning: no previous prototype for `make_land'
mapgen.c:437: warning: no previous prototype for `tiny_island'
mapgen.c:450: warning: no previous prototype for `filter_land'
mapgen.c:467: warning: no previous prototype for `flood_fill'
mapgen.c:729: warning: no previous prototype for `adjust_terrain_param'
mapgen.c:784: warning: no previous prototype for `print_map'
mapgen.c:795: warning: no previous prototype for `print_hmap'
mapgen.c:806: warning: no previous prototype for `print_imap'
mapgen.c:893: warning: no previous prototype for `smooth_map'
mapgen.c:971: warning: no previous prototype for `is_cold'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c maphand.c
In file included from maphand.c:23:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c meta.c
In file included from /usr/include/sys/socket.h:34,
                 from meta.c:20:
/usr/include/socketbits.h:173: warning: ANSI C forbids zero-size array 
`__cmsg_data'
meta.c:57: warning: no previous prototype for `server_close_udp'
meta.c:62: warning: no previous prototype for `server_open_udp'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c plrhand.c
In file included from plrhand.c:44:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
plrhand.c:73: warning: no previous prototype for `secompare'
plrhand.c:80: warning: no previous prototype for `historian_generic'
plrhand.c:127: warning: no previous prototype for `nr_wonders'
plrhand.c:195: warning: no previous prototype for `rank_calc_research'
plrhand.c:200: warning: no previous prototype for `rank_research'
plrhand.c:212: warning: no previous prototype for `rank_calc_literacy'
plrhand.c:225: warning: no previous prototype for `rank_literacy'
plrhand.c:237: warning: no previous prototype for `rank_production'
plrhand.c:249: warning: no previous prototype for `rank_economics'
plrhand.c:261: warning: no previous prototype for `rank_pollution'
plrhand.c:273: warning: no previous prototype for `rank_calc_mil_service'
plrhand.c:278: warning: no previous prototype for `rank_mil_service'
plrhand.c:290: warning: no previous prototype for `number_to_string'
plrhand.c:342: warning: no previous prototype for `log_civ_score'
plrhand.c:418: warning: no previous prototype for `make_history_report'
plrhand.c:448: warning: no previous prototype for `show_ending'
plrhand.c:478: warning: no previous prototype for `great_library'
plrhand.c:522: warning: no previous prototype for `update_revolution'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c ruleset.c
In file included from ruleset.c:21:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c sernet.c
In file included from sernet.c:37:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
In file included from /usr/include/sys/socket.h:34,
                 from sernet.c:31:
/usr/include/socketbits.h:173: warning: ANSI C forbids zero-size array 
`__cmsg_data'
sernet.c: In function `server_accept_connection':
sernet.c:194: warning: pointer targets in passing arg 3 of `accept' differ in 
signedness
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c settlers.c
In file included from settlers.c:30:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
settlers.c:53: warning: no previous prototype for `ai_do_build_city'
settlers.c:427: warning: no previous prototype for `old_is_already_assigned'
settlers.c:477: warning: no previous prototype for `is_wet'
settlers.c:538: warning: no previous prototype for `road_bonus'
settlers.c:1207: warning: no previous prototype for `assign_settlers_player'
settlers.c:1227: warning: no previous prototype for `assign_settlers'
settlers.c:1239: warning: no previous prototype for `assign_region'
settlers.c:1250: warning: no previous prototype for `assign_territory_player'
settlers.c:1275: warning: no previous prototype for `assign_territory'
settlers.c:1292: warning: no previous prototype for `auto_settlers'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c spacerace.c
In file included from spacerace.c:21:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c stdinhand.c
In file included from stdinhand.c:26:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
stdinhand.c:479: warning: no previous prototype for `sset_is_changeable'
stdinhand.c:512: warning: no previous prototype for `sset_is_to_client'
stdinhand.c:526: warning: no previous prototype for `test_player_name'
stdinhand.c:744: warning: no previous prototype for `meta_command'
stdinhand.c:762: warning: no previous prototype for `name_of_skill_level'
stdinhand.c:775: warning: no previous prototype for `handicap_of_skill_level'
stdinhand.c:789: warning: no previous prototype for `fuzzy_of_skill_level'
stdinhand.c:802: warning: no previous prototype for 
`expansionism_of_skill_level'
stdinhand.c:814: warning: no previous prototype for `save_command'
stdinhand.c:827: warning: no previous prototype for `toggle_ai_player'
stdinhand.c:870: warning: no previous prototype for `create_ai_player'
stdinhand.c:928: warning: no previous prototype for `remove_player'
stdinhand.c:951: warning: no previous prototype for `rename_player'
stdinhand.c:960: warning: no previous prototype for `read_command'
stdinhand.c:969: warning: no previous prototype for `write_command'
stdinhand.c:1007: warning: no previous prototype for `cmdlevel_command'
stdinhand.c:1138: warning: no previous prototype for `lookup_option'
stdinhand.c:1160: warning: no previous prototype for `explain_option'
stdinhand.c:1346: warning: no previous prototype for `crash_and_burn'
stdinhand.c:1359: warning: no previous prototype for `show_command'
stdinhand.c:1437: warning: no previous prototype for `set_command'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c unitfunc.c
In file included from unitfunc.c:31:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
unitfunc.c:1179: warning: no previous prototype for `total_activity'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c unithand.c
In file included from unithand.c:32:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
unithand.c:695: warning: no previous prototype for `wakeup_neighbor_sentries'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./../common 
-I./../ai  -g -O2 -Wall -c unittools.c
In file included from unittools.c:18:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
unittools.c:510: warning: no previous prototype for `find_a_unit_type'
gcc -Wmissing-prototypes -pedantic -g -O2 -Wall  -o civserver  autoattack.o 
cityhand.o citytools.o cityturn.o civserver.o console.o diplhand.o gamehand.o 
gamelog.o gotohand.o handchat.o mapgen.o maphand.o meta.o plrhand.o ruleset.o 
sernet.o settlers.o spacerace.o stdinhand.o unitfunc.o unithand.o unittools.o 
../common/libcivcommon.a ../ai/libcivai.a   
make[2]: Leaving directory `/home/schaefer/freeciv/server'
Making all in client
make[2]: Entering directory `/home/schaefer/freeciv/client'
Making all in gui-xaw
make[3]: Entering directory `/home/schaefer/freeciv/client/gui-xaw'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c canvas.c
canvas.c:189: warning: `ClassInitialize' was used with no prototype before its 
definition
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c chatline.c
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c citydlg.c
citydlg.c:308: warning: no previous prototype for `city_map_canvas_expose'
citydlg.c: In function `create_city_dialog':
citydlg.c:332: warning: pointer targets in passing arg 3 of 
`XCreateBitmapFromData' differ in signedness
citydlg.c: At top level:
citydlg.c:719: warning: no previous prototype for `present_units_ok_callback'
citydlg.c:741: warning: no previous prototype for 
`present_units_activate_callback'
citydlg.c:755: warning: no previous prototype for 
`present_units_activate_close_callback'
citydlg.c:775: warning: no previous prototype for 
`supported_units_activate_close_callback'
citydlg.c:797: warning: no previous prototype for 
`present_units_disband_callback'
citydlg.c:812: warning: no previous prototype for 
`present_units_homecity_callback'
citydlg.c:827: warning: no previous prototype for 
`present_units_cancel_callback'
citydlg.c:875: warning: no previous prototype for `rename_city_callback'
citydlg.c:914: warning: no previous prototype for 
`trade_message_dialog_callback'
citydlg.c:1167: warning: no previous prototype for `support_units_callback'
citydlg.c:1438: warning: no previous prototype for `buy_callback_yes'
citydlg.c:1456: warning: no previous prototype for `buy_callback_no'
citydlg.c:1574: warning: no previous prototype for `change_to_callback'
citydlg.c:1602: warning: no previous prototype for `change_no_callback'
citydlg.c:1615: warning: no previous prototype for `change_help_callback'
citydlg.c:1751: warning: no previous prototype for `sell_callback_yes'
citydlg.c:1770: warning: no previous prototype for `sell_callback_no'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c cityrep.c
In file included from cityrep.c:42:
../../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
cityrep.c:712: warning: no previous prototype for `city_report_dialog_update'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c clinet.c
In file included from clinet.c:46:
../../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
In file included from /usr/include/sys/socket.h:34,
                 from clinet.c:25:
/usr/include/socketbits.h:173: warning: ANSI C forbids zero-size array 
`__cmsg_data'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c colors.c
In file included from colors.c:21:
../../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
colors.c:96: warning: no previous prototype for `alloc_standard_colors'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c 
connectdlg.c
connectdlg.c:62: warning: no previous prototype for `gui_server_connect'
connectdlg.c:123: warning: no previous prototype for `connect_dialog_returnkey'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c dialogs.c
dialogs.c:136: warning: no previous prototype for `notify_command_callback'
dialogs.c:200: warning: no previous prototype for `notify_goto_widget_remove'
dialogs.c:219: warning: no previous prototype for `notify_goto_find_widget'
dialogs.c:232: warning: no previous prototype for 
`notify_goto_add_widget_coords'
dialogs.c:244: warning: no previous prototype for `notify_goto_command_callback'
dialogs.c:256: warning: no previous prototype for 
`notify_no_goto_command_callback'
dialogs.c:328: warning: no previous prototype for `diplomat_bribe_yes_callback'
dialogs.c:345: warning: no previous prototype for `diplomat_bribe_no_callback'
dialogs.c:354: warning: no previous prototype for `diplomat_bribe_callback'
dialogs.c:393: warning: no previous prototype for `diplomat_sabotage_callback'
dialogs.c:415: warning: no previous prototype for `diplomat_embassy_callback'
dialogs.c:436: warning: no previous prototype for 
`diplomat_investigate_callback'
dialogs.c:457: warning: no previous prototype for `spy_sabotage_unit_callback'
dialogs.c:475: warning: no previous prototype for `spy_poison_callback'
dialogs.c:497: warning: no previous prototype for `diplomat_steal_callback'
dialogs.c:519: warning: no previous prototype for `spy_close_tech_callback'
dialogs.c:532: warning: no previous prototype for `spy_close_sabotage_callback'
dialogs.c:545: warning: no previous prototype for `spy_select_tech_callback'
dialogs.c:562: warning: no previous prototype for 
`spy_select_improvement_callback'
dialogs.c:579: warning: no previous prototype for `spy_steal_callback'
dialogs.c:606: warning: no previous prototype for `spy_sabotage_callback'
dialogs.c:633: warning: no previous prototype for `create_advances_list'
dialogs.c:717: warning: no previous prototype for `create_improvements_list'
dialogs.c:794: warning: no previous prototype for `spy_steal_popup'
dialogs.c:829: warning: no previous prototype for `spy_sabotage_popup'
dialogs.c:856: warning: no previous prototype for `diplomat_incite_yes_callback'
dialogs.c:873: warning: no previous prototype for `diplomat_incite_no_callback'
dialogs.c:883: warning: no previous prototype for `diplomat_incite_callback'
dialogs.c:924: warning: no previous prototype for `diplomat_cancel_callback'
dialogs.c:1021: warning: no previous prototype for 
`caravan_establish_trade_callback'
dialogs.c:1039: warning: no previous prototype for 
`caravan_help_build_wonder_callback'
dialogs.c:1057: warning: no previous prototype for 
`caravan_keep_moving_callback'
dialogs.c:1113: warning: no previous prototype for `government_callback'
dialogs.c:1162: warning: no previous prototype for `revolution_callback_yes'
dialogs.c:1175: warning: no previous prototype for `revolution_callback_no'
dialogs.c: In function `popup_message_dialog':
dialogs.c:1222: warning: ANSI forbids assignment between function pointer and 
`void *'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c diplodlg.c
diplodlg.c:218: warning: no previous prototype for `fill_diplomacy_tech_menu'
diplodlg.c:246: warning: no previous prototype for `fill_diplomacy_city_menu'
diplodlg.c:822: warning: no previous prototype for `find_diplomacy_by_input'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c finddlg.c
finddlg.c:72: warning: no previous prototype for `popup_find_dialog'
finddlg.c:172: warning: no previous prototype for `popdown_find_dialog'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c gotodlg.c
gotodlg.c:93: warning: no previous prototype for `popup_goto_dialog'
gotodlg.c:179: warning: no previous prototype for `get_selected_city'
gotodlg.c:234: warning: no previous prototype for `popdown_goto_dialog'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c graphics.c
In file included from graphics.c:26:
../../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
In file included from graphics.c:34:
../include/goto_cursor.xbm:6: warning: overflow in implicit constant conversion
../include/goto_cursor.xbm:6: warning: overflow in implicit constant conversion
In file included from graphics.c:35:
../include/goto_cursor_mask.xbm:4: warning: overflow in implicit constant 
conversion
../include/goto_cursor_mask.xbm:4: warning: overflow in implicit constant 
conversion
../include/goto_cursor_mask.xbm:4: warning: overflow in implicit constant 
conversion
../include/goto_cursor_mask.xbm:4: warning: overflow in implicit constant 
conversion
../include/goto_cursor_mask.xbm:4: warning: overflow in implicit constant 
conversion
../include/goto_cursor_mask.xbm:5: warning: overflow in implicit constant 
conversion
../include/goto_cursor_mask.xbm:5: warning: overflow in implicit constant 
conversion
../include/goto_cursor_mask.xbm:5: warning: overflow in implicit constant 
conversion
../include/goto_cursor_mask.xbm:5: warning: overflow in implicit constant 
conversion
../include/goto_cursor_mask.xbm:5: warning: overflow in implicit constant 
conversion
../include/goto_cursor_mask.xbm:5: warning: overflow in implicit constant 
conversion
../include/goto_cursor_mask.xbm:5: warning: overflow in implicit constant 
conversion
graphics.c:102: warning: no previous prototype for `crop_sprite'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c gui_main.c
In file included from gui_main.c:41:
../../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
gui_main.c:255: warning: no previous prototype for `myerr'
gui_main.c: In function `ui_main':
gui_main.c:363: warning: pointer targets in passing arg 3 of 
`XCreateBitmapFromData' differ in signedness
gui_main.c:403: warning: pointer targets in passing arg 3 of 
`XCreateBitmapFromData' differ in signedness
gui_main.c:404: warning: pointer targets in passing arg 3 of 
`XCreateBitmapFromData' differ in signedness
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c gui_stuff.c
gui_stuff.c:41: warning: no previous prototype for `xaw_set_relative_position'
gui_stuff.c:55: warning: no previous prototype for `xaw_horiz_center'
gui_stuff.c:67: warning: no previous prototype for `xaw_set_bitmap'
gui_stuff.c:77: warning: no previous prototype for `xaw_set_label'
gui_stuff.c:109: warning: no previous prototype for `x_simulate_button_click'
gui_stuff.c:129: warning: no previous prototype for `x_scale_pixmap'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c helpdlg.c
In file included from helpdlg.c:35:
../../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
helpdlg.c:122: warning: no previous prototype for `find_help_item_position'
helpdlg.c:130: warning: no previous prototype for `set_title_topic'
helpdlg.c:493: warning: no previous prototype for `create_tech_tree'
helpdlg.c:841: warning: no previous prototype for `help_update_improvement'
helpdlg.c:924: warning: no previous prototype for `help_update_wonder'
helpdlg.c:976: warning: no previous prototype for `help_update_unit_type'
helpdlg.c:1117: warning: no previous prototype for `help_update_tech'
helpdlg.c:1180: warning: no previous prototype for `help_update_dialog'
helpdlg.c:1224: warning: no previous prototype for `help_tree_destroy_children'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c inputdlg.c
inputdlg.c:29: warning: no previous prototype for `input_dialog_get_input'
inputdlg.c:45: warning: no previous prototype for `input_dialog_destroy'
inputdlg.c:56: warning: no previous prototype for `input_dialog_returnkey'
inputdlg.c:69: warning: no previous prototype for `input_dialog_create'
inputdlg.c: In function `input_dialog_create':
inputdlg.c:109: warning: ANSI forbids passing arg 3 of `XtAddCallback' between 
function pointer and `void *'
inputdlg.c:111: warning: ANSI forbids passing arg 3 of `XtAddCallback' between 
function pointer and `void *'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c inteldlg.c
inteldlg.c:53: warning: no previous prototype for `popup_intel_dialog'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c mapctrl.c
In file included from mapctrl.c:47:
../../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
mapctrl.c:86: warning: no previous prototype for `name_new_city_callback'
mapctrl.c:759: warning: no previous prototype for `popit'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c mapview.c
mapview.c:577: warning: no previous prototype for 
`set_overview_tile_foreground_color'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c menu.c
menu.c:229: warning: no previous prototype for `update_menus'
menu.c:400: warning: no previous prototype for `game_menu_callback'
menu.c:453: warning: no previous prototype for `view_menu_callback'
menu.c:471: warning: no previous prototype for `orders_menu_callback'
menu.c:579: warning: no previous prototype for `reports_menu_callback'
menu.c:615: warning: no previous prototype for `help_menu_callback'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c 
messagedlg.c
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c 
messagewin.c
messagewin.c:75: warning: no previous prototype for `meswin_update_delay_on'
messagewin.c:83: warning: no previous prototype for `meswin_update_delay_off'
messagewin.c:92: warning: no previous prototype for `popup_meswin_dialog'
messagewin.c:218: warning: no previous prototype for `clear_notify_window'
messagewin.c:294: warning: no previous prototype for `update_meswin_dialog'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c optiondlg.c
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c pixcomm.c
pixcomm.c:145: warning: `Notify' was used with no prototype before its 
definition
pixcomm.c:218: warning: `ClassInitialize' was used with no prototype before its 
definition
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c plrdlg.c
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c ratesdlg.c
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c repodlgs.c
repodlgs.c:113: warning: no previous prototype for `report_update_delay_on'
repodlgs.c:121: warning: no previous prototype for `report_update_delay_off'
repodlgs.c:129: warning: no previous prototype for `update_report_dialogs'
repodlgs.c:751: warning: no previous prototype for `trade_report_dialog_update'
repodlgs.c:944: warning: no previous prototype for `upgrade_callback_yes'
repodlgs.c:954: warning: no previous prototype for `upgrade_callback_no'
repodlgs.c:1009: warning: no previous prototype for 
`activeunits_report_dialog_update'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c resources.c
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I../.. -I. 
-I./../include -I../../common  -I/usr/X11R6/include  -g -O2 -Wall -c 
spaceshipdlg.c
spaceshipdlg.c:167: warning: no previous prototype for 
`spaceship_image_canvas_expose'
rm -f libguiclient.a
ar cru libguiclient.a canvas.o chatline.o citydlg.o cityrep.o clinet.o colors.o 
connectdlg.o dialogs.o diplodlg.o finddlg.o gotodlg.o graphics.o gui_main.o 
gui_stuff.o helpdlg.o inputdlg.o inteldlg.o mapctrl.o mapview.o menu.o 
messagedlg.o messagewin.o optiondlg.o pixcomm.o plrdlg.o ratesdlg.o repodlgs.o 
resources.o spaceshipdlg.o 
ranlib libguiclient.a
make[3]: Leaving directory `/home/schaefer/freeciv/client/gui-xaw'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./include 
-I../common -I./gui-xaw  -I/usr/X11R6/include  -g -O2 -Wall -c civclient.c
In file included from civclient.c:24:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
civclient.c:354: warning: no previous prototype for `dealloc_id'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./include 
-I../common -I./gui-xaw  -I/usr/X11R6/include  -g -O2 -Wall -c climisc.c
In file included from climisc.c:31:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
climisc.c:173: warning: no previous prototype for `climap_renumber_continent'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./include 
-I../common -I./gui-xaw  -I/usr/X11R6/include  -g -O2 -Wall -c packhand.c
In file included from packhand.c:29:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
packhand.c:58: warning: no previous prototype for `handle_join_game_reply'
packhand.c:82: warning: no previous prototype for `handle_remove_city'
packhand.c:92: warning: no previous prototype for `handle_remove_unit'
packhand.c:101: warning: no previous prototype for `handle_nuke_tile'
packhand.c:109: warning: no previous prototype for `handle_unit_combat'
packhand.c:128: warning: no previous prototype for `handle_game_state'
packhand.c:159: warning: no previous prototype for `handle_city_info'
packhand.c:269: warning: no previous prototype for `handle_new_year'
packhand.c:297: warning: no previous prototype for `handle_before_new_year'
packhand.c:328: warning: no previous prototype for `handle_page_msg'
packhand.c:345: warning: no previous prototype for `handle_move_unit'
packhand.c:723: warning: no previous prototype for `spaceship_autoplace'
packhand.c:855: warning: no previous prototype for `handle_spaceship_info'
packhand.c:952: warning: no previous prototype for `handle_remove_player'
packhand.c:982: warning: no previous prototype for `handle_ruleset_unit'
packhand.c:1007: warning: no previous prototype for `handle_ruleset_tech'
packhand.c:1019: warning: no previous prototype for `handle_ruleset_building'
packhand.c:1037: warning: no previous prototype for `handle_incite_cost'
packhand.c:1057: warning: no previous prototype for `handle_city_options'
gcc -Wmissing-prototypes -pedantic -DHAVE_CONFIG_H -I. -I. -I.. -I./include 
-I../common -I./gui-xaw  -I/usr/X11R6/include  -g -O2 -Wall -c options.c
In file included from options.c:23:
../common/log.h:100: warning: ANSI C does not allow macro with variable 
arguments
options.c:141: warning: no previous prototype for `open_option_file'
gcc -Wmissing-prototypes -pedantic -g -O2 -Wall  -o civclient  civclient.o 
climisc.o packhand.o options.o gui-xaw/libguiclient.a ../common/libcivcommon.a  
-L/usr/X11R6/lib -lXaw -lXpm -lXmu -lXt  -lSM -lICE -lXext -lX11  
make[2]: Leaving directory `/home/schaefer/freeciv/client'
make[1]: Leaving directory `/home/schaefer/freeciv'

[Prev in Thread] Current Thread [Next in Thread]