Changeset 975 for trunk/src/birth.c

Show
Ignore:
Timestamp:
07/04/08 04:18:27 (6 months ago)
Author:
shanoah
Message:

Get rid of a bunch of compiler warnings.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/birth.c

    r930 r975  
    695695static game_command get_birth_command() 
    696696{ 
    697         game_command cmd = { CMD_NULL }; 
     697        game_command cmd = { CMD_NULL, 0, {0} }; 
    698698 
    699699        while (cmd.command == CMD_NULL) 
     
    778778static enum birth_stage do_point_based(bool reset) 
    779779{ 
    780         game_command cmd = { CMD_NULL }; 
     780        game_command cmd = { CMD_NULL, 0, {0} }; 
    781781         
    782782        int i, j; 
     
    906906                                break; 
    907907                        } 
     908                        default: 
     909                        { 
     910                                /* This state shouldn't be reached. */ 
     911                        } 
    908912                } 
    909913        } 
     
    947951{ 
    948952        int i; 
    949         game_command cmd = { CMD_NULL, 0 }; 
     953        game_command cmd = { CMD_NULL, 0, {0} }; 
    950954 
    951955 
     
    955959        * character or not, so initialise it here. 
    956960        */ 
    957         birther prev = { 0 }; 
     961        birther prev = { 0, 0, 0, 0, 0, 0, 0, 0, {0}, "" }; 
    958962 
    959963        /*  
     
    962966         * birth process. 
    963967         */ 
    964         birther quickstart_prev = { 0 }; 
     968        birther quickstart_prev = {0, 0, 0, 0, 0, 0, 0, 0, {0}, "" }; 
    965969 
    966970        enum birth_stage next_stage = BIRTH_METHOD_CHOICE; 
     
    15491553                                                        break; 
    15501554                                                } 
     1555                                                default: 
     1556                                                { 
     1557                                                        /* This should not be reached. */ 
     1558                                                } 
    15511559                                        } 
    15521560                                } 
     
    16171625                                } 
    16181626                        } 
     1627                        case BIRTH_COMPLETE: 
     1628                        { 
     1629                                /* End of the line - Exit the while loop. */ 
     1630                        } 
    16191631                } 
    16201632