Fix gcc 7.1.0 warnings

git-svn-id: https://svn.eduke32.com/eduke32@6370 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-07-18 20:53:41 +00:00
parent 60098c45d6
commit dad337add8
25 changed files with 141 additions and 24 deletions

View file

@ -326,6 +326,7 @@ int32_t SCRIPT_ParseBuffer(int32_t scripthandle, char *data, int32_t length)
case ParsingSectionBegin:
currentsection = dp = sp;
state = ParsingSectionName;
fallthrough__;
case ParsingSectionName:
LETTER();
switch (ch)
@ -360,6 +361,7 @@ int32_t SCRIPT_ParseBuffer(int32_t scripthandle, char *data, int32_t length)
EATLINE(sp);
printf("Unexpected comment on line %d.\n", linenum);
SETRV(-1);
fallthrough__;
case '\n':
case '\r':
// Unexpected newline
@ -385,6 +387,7 @@ int32_t SCRIPT_ParseBuffer(int32_t scripthandle, char *data, int32_t length)
case ParsingValueBegin:
currentvalue = dp = sp;
state = ParsingValue;
fallthrough__;
case ParsingValue:
LETTER();
switch (ch)