Commit 3cb81c9f authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Comment intentional case fall-throughs

CID 174223
CID 174227
CID 174461
CID 174519
CID 229602
CID 319040
CID 319137
CID 319159
parent ac55cbae
...@@ -658,6 +658,7 @@ int main(int argc, char **argv) ...@@ -658,6 +658,7 @@ int main(int argc, char **argv)
case 0: case 0:
printf("NOTICE: The -i option is deprecated, use -if instead\n"); printf("NOTICE: The -i option is deprecated, use -if instead\n");
SLEEP(2000); SLEEP(2000);
// fall-through
case 'F': case 'F':
ciolib_mode=CIOLIB_MODE_CURSES_IBM; ciolib_mode=CIOLIB_MODE_CURSES_IBM;
break; break;
......
...@@ -175,6 +175,7 @@ int main(int argc, char** argv) ...@@ -175,6 +175,7 @@ int main(int argc, char** argv)
switch(tolower(argv[i][1])) { switch(tolower(argv[i][1])) {
case 'b': case 'b':
bodyfp=stdout; bodyfp=stdout;
// fall-through
case 'c': case 'c':
ctrlfp=stdout; ctrlfp=stdout;
break; break;
......
...@@ -1409,6 +1409,7 @@ int main(int argc, char **argv, char** env) ...@@ -1409,6 +1409,7 @@ int main(int argc, char **argv, char** env)
break; break;
default: default:
fprintf(stderr,"\n!Unsupported option: %s\n",argv[argn]); fprintf(stderr,"\n!Unsupported option: %s\n",argv[argn]);
// fall-through
case '?': case '?':
usage(); usage();
return(do_bail(1)); return(do_bail(1));
......
...@@ -621,6 +621,7 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode) ...@@ -621,6 +621,7 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode)
break; break;
case TERM_KEY_RIGHT: case TERM_KEY_RIGHT:
newline(); newline();
// fall-through
case 0: case 0:
case '+': case '+':
if(smb.curmsg<smb.msgs-1) smb.curmsg++; if(smb.curmsg<smb.msgs-1) smb.curmsg++;
...@@ -628,6 +629,7 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode) ...@@ -628,6 +629,7 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode)
break; break;
case TERM_KEY_LEFT: case TERM_KEY_LEFT:
newline(); newline();
// fall-through
case '-': case '-':
if(smb.curmsg>0) smb.curmsg--; if(smb.curmsg>0) smb.curmsg--;
break; break;
......
...@@ -1964,6 +1964,7 @@ int main(int argc, char** argv) { ...@@ -1964,6 +1964,7 @@ int main(int argc, char** argv) {
case 0: case 0:
printf("NOTICE: The -i option is deprecated, use -if instead\n"); printf("NOTICE: The -i option is deprecated, use -if instead\n");
SLEEP(2000); SLEEP(2000);
// fall-through
case 'F': case 'F':
ciolib_mode=CIOLIB_MODE_CURSES_IBM; ciolib_mode=CIOLIB_MODE_CURSES_IBM;
break; break;
......
...@@ -922,6 +922,7 @@ int main(int argc, char** argv) { ...@@ -922,6 +922,7 @@ int main(int argc, char** argv) {
case 0: case 0:
printf("NOTICE: The -i option is deprecated, use -if instead\n"); printf("NOTICE: The -i option is deprecated, use -if instead\n");
SLEEP(2000); SLEEP(2000);
// fall-through
case 'F': case 'F':
ciolib_mode=CIOLIB_MODE_CURSES_IBM; ciolib_mode=CIOLIB_MODE_CURSES_IBM;
break; break;
......
...@@ -5931,6 +5931,7 @@ static BOOL ssjs_send_headers(http_session_t* session,int chunked) ...@@ -5931,6 +5931,7 @@ static BOOL ssjs_send_headers(http_session_t* session,int chunked)
* the gun at the script writers foot for them */ * the gun at the script writers foot for them */
chunked = false; chunked = false;
session->req.manual_length = TRUE; session->req.manual_length = TRUE;
// fall-through
default: default:
safe_snprintf(str,sizeof(str),"%s: %s",p,p2); safe_snprintf(str,sizeof(str),"%s: %s",p,p2);
strListPush(&session->req.dynamic_heads,str); strListPush(&session->req.dynamic_heads,str);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment