rogue4: fix most GCC5 warnings.

Converting all function definitions to ANSI style accounts for most of
the change.  This has exposed other problems, such as daemons not
actually being their stated type, that will require more careful
solutions.
This commit is contained in:
John "Elwin" Edwards 2016-01-27 19:41:05 -05:00
parent 384386d71c
commit c1d6a6af6a
32 changed files with 625 additions and 394 deletions

View file

@ -19,7 +19,8 @@ int between = 0;
* doctor:
* A healing daemon that restors hit points after rest
*/
doctor()
void
doctor(void)
{
register int lv, ohp;
@ -50,7 +51,8 @@ doctor()
* Swander:
* Called when it is time to start rolling for wandering monsters
*/
swander()
void
swander(void)
{
start_daemon(rollwand, 0, BEFORE);
}
@ -59,7 +61,8 @@ swander()
* rollwand:
* Called to roll to see if a wandering monster starts up
*/
rollwand()
void
rollwand(void)
{
if (++between >= 4)
{
@ -77,7 +80,8 @@ rollwand()
* unconfuse:
* Release the poor player from his confusion
*/
unconfuse()
void
unconfuse(void)
{
player.t_flags &= ~ISHUH;
msg("you feel less confused now");
@ -87,7 +91,8 @@ unconfuse()
* unsee:
* Turn off the ability to see invisible
*/
unsee()
void
unsee(void)
{
register THING *th;
@ -104,7 +109,8 @@ unsee()
* sight:
* He gets his sight back
*/
sight()
void
sight(void)
{
if (on(player, ISBLIND))
{
@ -120,7 +126,8 @@ sight()
* nohaste:
* End the hasting
*/
nohaste()
void
nohaste(void)
{
player.t_flags &= ~ISHASTE;
msg("you feel yourself slowing down");
@ -130,7 +137,8 @@ nohaste()
* stomach:
* Digest the hero's food
*/
stomach()
void
stomach(void)
{
register int oldfood;