hi,
I have compiled SMAUG with CLAGFS set to I'-Wshadow -Wpointer-arith -Wcast-qual -W -Wall', and received quite a lot of compiler warnings and an error that the developers of SMAUG may need to look into :
make smaug
make[1]: Entering directory `/usr/local/src/smaug/smaug1.8/src'
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC act_comm.c
In file included from act_comm.c:27:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
act_comm.c: In function `do_say_to':
act_comm.c:1020: warning: declaration of 'last_char' shadows a global declaration
mud.h:3941: warning: shadowed declaration is here
act_comm.c: In function `do_say':
act_comm.c:1316: warning: declaration of 'last_char' shadows a global declaration
mud.h:3941: warning: shadowed declaration is here
act_comm.c: In function `do_repeat':
act_comm.c:2278: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
act_comm.c: In function `is_profane':
act_comm.c:4306: warning: implicit declaration of function `re_exec'
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC act_info.c
In file included from act_info.c:25:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
act_info.c: In function `num_punct':
act_info.c:238: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
act_info.c: In function `do_password':
act_info.c:4554: warning: declaration of 'log_buf' shadows a global declaration
mud.h:3997: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC act_move.c
In file included from act_move.c:25:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
act_move.c:393:15: warning: trigraph ??> ignored, use -trigraphs to enable
act_move.c: In function `generate_exit':
act_move.c:604: warning: use of cast expressions as lvalues is deprecated
act_move.c: In function `do_bashdoor':
act_move.c:1843: warning: declaration of 'chance' shadows a global declaration
mud.h:5416: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC act_obj.c
In file included from act_obj.c:22:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC act_wiz.c
In file included from act_wiz.c:25:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
act_wiz.c:1806:22: warning: trigraph ??! ignored, use -trigraphs to enable
act_wiz.c: In function `update_time':
act_wiz.c:6396: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
act_wiz.c: In function `close_area':
act_wiz.c:6597: warning: declaration of 'exit' shadows a global declaration
/usr/include/stdlib.h:640: warning: shadowed declaration is here
act_wiz.c: In function `do_hell':
act_wiz.c:7625: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
act_wiz.c: At top level:
act_wiz.c:8794: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
act_wiz.c:9209: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
act_wiz.c: In function `do_nuisance':
act_wiz.c:11469: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC boards.c
In file included from boards.c:24:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
In file included from imc-mercbase.h:166,
from boards.c:26:
imc.h:464: warning: declaration of 'read' shadows a global declaration
/usr/include/unistd.h:314: warning: shadowed declaration is here
imc.h:464: warning: declaration of 'write' shadows a global declaration
/usr/include/unistd.h:320: warning: shadowed declaration is here
imc.h:465: warning: declaration of 'read' shadows a global declaration
/usr/include/unistd.h:314: warning: shadowed declaration is here
imc.h:465: warning: declaration of 'write' shadows a global declaration
/usr/include/unistd.h:320: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC build.c
In file included from build.c:23:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
build.c: In function `do_redit':
build.c:5484: warning: declaration of 'xit' shadows a previous local
build.c:4715: warning: shadowed declaration is here
build.c: In function `edit_buffer':
build.c:5968: warning: declaration of 'x' shadows a previous local
build.c:5898: warning: shadowed declaration is here
build.c:6011: warning: declaration of 'x' shadows a previous local
build.c:5898: warning: shadowed declaration is here
build.c: In function `do_alinks':
build.c:10201: warning: declaration of 'exit' shadows a global declaration
/usr/include/stdlib.h:640: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC clans.c
In file included from clans.c:19:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
clans.c: In function `do_shove':
clans.c:2356: warning: declaration of 'chance' shadows a global declaration
mud.h:5416: warning: shadowed declaration is here
clans.c: In function `do_drag':
clans.c:2549: warning: declaration of 'chance' shadows a global declaration
mud.h:5416: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC comm.c
In file included from comm.c:28:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
In file included from comm.c:30:
imc.h:464: warning: declaration of 'read' shadows a global declaration
/usr/include/unistd.h:314: warning: shadowed declaration is here
imc.h:464: warning: declaration of 'write' shadows a global declaration
/usr/include/unistd.h:320: warning: shadowed declaration is here
imc.h:465: warning: declaration of 'read' shadows a global declaration
/usr/include/unistd.h:314: warning: shadowed declaration is here
imc.h:465: warning: declaration of 'write' shadows a global declaration
/usr/include/unistd.h:320: warning: shadowed declaration is here
comm.c:124: warning: declaration of 'port' shadows a global declaration
mud.h:3193: warning: shadowed declaration is here
comm.c:349: warning: declaration of 'port' shadows a global declaration
comm.c:154: warning: shadowed declaration is here
comm.c: In function `display_prompt':
comm.c:3522: warning: declaration of 'stat' shadows a global declaration
/usr/include/sys/stat.h:365: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC comments.c
In file included from comments.c:49:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC const.c
In file included from const.c:21:
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC db.c
In file included from db.c:30:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
db.c: In function `fix_exits':
db.c:2400: warning: declaration of 'rev_exit' shadows a global declaration
mud.h:4939: warning: shadowed declaration is here
db.c: In function `fix_area_exits':
db.c:5914: warning: declaration of 'rev_exit' shadows a global declaration
mud.h:4939: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC deity.c
In file included from deity.c:25:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC fight.c
In file included from fight.c:22:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
fight.c: In function `multi_hit':
fight.c:836: warning: declaration of 'chance' shadows a global declaration
mud.h:5416: warning: shadowed declaration is here
fight.c: In function `death_cry':
fight.c:3455: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC handler.c
In file included from handler.c:23:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC hashstr.c
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC ibuild.c
In file included from ibuild.c:18:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC ident.c
In file included from ident.c:31:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
ident.c: In function `auth_read':
ident.c:152: warning: declaration of 'system' shadows a global declaration
/usr/include/stdlib.h:730: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC interp.c
In file included from interp.c:23:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
interp.c:33: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
interp.c: In function `interpret':
interp.c:404: warning: declaration of 'log_buf' shadows a global declaration
mud.h:3997: warning: shadowed declaration is here
interp.c: In function `do_timecmd':
interp.c:1168: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
interp.c: At top level:
interp.c:1209: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
interp.c:1220: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC magic.c
In file included from magic.c:26:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
magic.c:704: warning: declaration of 'chance' shadows a global declaration
mud.h:5416: warning: shadowed declaration is here
magic.c: In function `spell_charm_person':
magic.c:2195: warning: declaration of 'chance' shadows a global declaration
mud.h:5416: warning: shadowed declaration is here
magic.c: In function `spell_dispel_magic':
magic.c:2683: warning: declaration of 'chance' shadows a global declaration
mud.h:5416: warning: shadowed declaration is here
magic.c: In function `spell_energy_drain':
magic.c:3073: warning: declaration of 'chance' shadows a global declaration
mud.h:5416: warning: shadowed declaration is here
magic.c: In function `spell_poison':
magic.c:4016: warning: declaration of 'chance' shadows a global declaration
mud.h:5416: warning: shadowed declaration is here
magic.c: In function `spell_sleep':
magic.c:4188: warning: declaration of 'chance' shadows a global declaration
mud.h:5416: warning: shadowed declaration is here
magic.c: In function `spell_affectchar':
magic.c:6246: warning: declaration of 'chance' shadows a global declaration
mud.h:5416: warning: shadowed declaration is here
magic.c: In function `spell_smaug':
magic.c:6899: warning: declaration of 'victim' shadows a previous local
magic.c:6821: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC makeobjs.c
In file included from makeobjs.c:22:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC mapout.c
In file included from mapout.c:22:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC misc.c
In file included from misc.c:25:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
misc.c: In function `do_tamp':
misc.c:1536: warning: declaration of 'pipe' shadows a global declaration
/usr/include/unistd.h:371: warning: shadowed declaration is here
misc.c: In function `do_smoke':
misc.c:1571: warning: declaration of 'pipe' shadows a global declaration
/usr/include/unistd.h:371: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC mpxset.c
In file included from mpxset.c:21:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC mud_comm.c
In file included from mud_comm.c:18:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud_comm.c: In function `do_mp_practice':
mud_comm.c:1931: warning: declaration of 'skill_name' shadows a global declaration
mud.h:5513: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC mud_prog.c
In file included from mud_prog.c:28:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud_prog.c: In function `mprog_do_ifcheck':
mud_prog.c:404: warning: declaration of 'lhsvl' shadows a previous local
mud_prog.c:276: warning: shadowed declaration is here
mud_prog.c:451: warning: declaration of 'lhsvl' shadows a previous local
mud_prog.c:276: warning: shadowed declaration is here
mud_prog.c:475: warning: declaration of 'lhsvl' shadows a previous local
mud_prog.c:276: warning: shadowed declaration is here
mud_prog.c:518: warning: declaration of 'lhsvl' shadows a previous local
mud_prog.c:276: warning: shadowed declaration is here
mud_prog.c:1062: warning: declaration of 'lhsvl' shadows a previous local
mud_prog.c:276: warning: shadowed declaration is here
mud_prog.c:1081: warning: declaration of 'lhsvl' shadows a previous local
mud_prog.c:276: warning: shadowed declaration is here
mud_prog.c:1140: warning: declaration of 'obj' shadows a parameter
mud_prog.c:265: warning: shadowed declaration is here
mud_prog.c:1159: warning: declaration of 'obj' shadows a parameter
mud_prog.c:265: warning: shadowed declaration is here
mud_prog.c:1253: warning: declaration of 'p' shadows a previous local
mud_prog.c:272: warning: shadowed declaration is here
mud_prog.c:1285: warning: declaration of 'p' shadows a previous local
mud_prog.c:272: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC player.c
In file included from player.c:23:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
player.c:1617:12: warning: trigraph ??) ignored, use -trigraphs to enable
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC polymorph.c
In file included from polymorph.c:16:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
polymorph.c: In function `do_morphset':
polymorph.c:544: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
polymorph.c:596: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC requests.c
In file included from requests.c:22:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC reset.c
In file included from reset.c:38:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC save.c
In file included from save.c:27:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC shops.c
In file included from shops.c:22:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC skills.c
In file included from skills.c:22:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
skills.c:28: warning: declaration of 'exit' shadows a global declaration
/usr/include/stdlib.h:640: warning: shadowed declaration is here
skills.c:70: warning: declaration of 'chance' shadows a global declaration
mud.h:5416: warning: shadowed declaration is here
skills.c: In function `learn_from_success':
skills.c:1552: warning: declaration of 'chance' shadows a global declaration
mud.h:5416: warning: shadowed declaration is here
skills.c: In function `learn_from_failure':
skills.c:1599: warning: declaration of 'chance' shadows a global declaration
mud.h:5416: warning: shadowed declaration is here
skills.c: In function `do_gouge':
skills.c:1728: warning: declaration of 'chance' shadows a global declaration
mud.h:5416: warning: shadowed declaration is here
skills.c: In function `do_bash':
skills.c:3167: warning: declaration of 'chance' shadows a global declaration
mud.h:5416: warning: shadowed declaration is here
skills.c: In function `do_stun':
skills.c:3217: warning: declaration of 'chance' shadows a global declaration
mud.h:5416: warning: shadowed declaration is here
skills.c: In function `check_grip':
skills.c:4764: warning: declaration of 'chance' shadows a global declaration
mud.h:5416: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC special.c
In file included from special.c:22:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
special.c:161: warning: declaration of 'spell_name' shadows a global declaration
mud.h:5512: warning: shadowed declaration is here
special.c: In function `spec_wanderer':
special.c:894: warning: declaration of 'chance' shadows a global declaration
mud.h:5416: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC tables.c
In file included from tables.c:21:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
In file included from imc-mercbase.h:166,
from tables.c:23:
imc.h:464: warning: declaration of 'read' shadows a global declaration
/usr/include/unistd.h:314: warning: shadowed declaration is here
imc.h:464: warning: declaration of 'write' shadows a global declaration
/usr/include/unistd.h:320: warning: shadowed declaration is here
imc.h:465: warning: declaration of 'read' shadows a global declaration
/usr/include/unistd.h:314: warning: shadowed declaration is here
imc.h:465: warning: declaration of 'write' shadows a global declaration
/usr/include/unistd.h:320: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC track.c
In file included from track.c:17:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC update.c
In file included from update.c:22:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
update.c:44: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
update.c: In function `auth_update':
update.c:2113: warning: declaration of 'log_buf' shadows a global declaration
mud.h:3997: warning: shadowed declaration is here
update.c: In function `update_handler':
update.c:2151: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
update.c: At top level:
update.c:2495: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
gcc -c -O -g3 -Wall -Wshadow -Wpointer-arith -Wshadow -Wpointer-arith -Wuninitialized -DREQUESTS -DSMAUG -DREGEX -DUSE_IMC grub.c
In file included from grub.c:18:
mud.h:4950: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:4951: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
mud.h:5297: warning: declaration of 'time' shadows a global declaration
/usr/include/time.h:184: warning: shadowed declaration is here
mud.h:5449: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
mud.h:5450: warning: declaration of 'stime' shadows a global declaration
/usr/include/time.h:294: warning: shadowed declaration is here
grub.c:27: warning: conflicting types for built-in function 'trunc'
grub.c: In function `rgrub_help':
grub.c:538: error: missing terminating " character
grub.c:539: error: syntax error before "search"
grub.c:539: error: stray '\' in program
grub.c:539: error: stray '\' in program
grub.c:539: error: missing terminating " character
grub.c:543: error: missing terminating " character
grub.c:544: error: stray '\' in program
grub.c:544: error: `Olympus' undeclared (first use in this function)
grub.c:544: error: (Each undeclared identifier is reported only once
grub.c:544: error: for each function it appears in.)
grub.c:544: error: syntax error before "n"
grub.c:544: error: stray '\' in program
grub.c:544: error: missing terminating " character
grub.c: In function `gr_read':
grub.c:1563: warning: declaration of 'sex' shadows a global declaration
grub.c:500: warning: shadowed declaration is here
grub.c:1564: warning: declaration of 'class' shadows a global declaration
grub.c:500: warning: shadowed declaration is here
grub.c:1565: warning: declaration of 'race' shadows a global declaration
grub.c:500: warning: shadowed declaration is here
grub.c:1568: warning: declaration of 'clan' shadows a global declaration
grub.c:500: warning: shadowed declaration is here
grub.c:1571: warning: declaration of 'council' shadows a global declaration
grub.c:500: warning: shadowed declaration is here
grub.c: In function `do_diagnose':
grub.c:2185: warning: declaration of 'cou' shadows a previous local
grub.c:1880: warning: shadowed declaration is here
grub.c:2423: warning: declaration of 'cou' shadows a previous local
grub.c:1880: warning: shadowed declaration is here
grub.c:2423: warning: declaration of 'race' shadows a global declaration
grub.c:500: warning: shadowed declaration is here
grub.c:2423: warning: declaration of 'class' shadows a global declaration
grub.c:500: warning: shadowed declaration is here
make[1]: *** [grub.o] Error 1
make[1]: Leaving directory `/usr/local/src/smaug/smaug1.8/src'
make: *** [all] Error 2