[Ttssh2-commit] [8838] fall through 警告を修正

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2020年 7月 5日 (日) 01:00:25 JST


Revision: 8838
          https://osdn.net/projects/ttssh2/scm/svn/commits/8838
Author:   zmatsuo
Date:     2020-07-05 01:00:24 +0900 (Sun, 05 Jul 2020)
Log Message:
-----------
fall through 警告を修正

warning: this statement may fall through

Modified Paths:
--------------
    trunk/ttssh2/ttxssh/auth.c
    trunk/ttssh2/ttxssh/fwdui.c
    trunk/ttssh2/ttxssh/sftp.c

-------------- next part --------------
Modified: trunk/ttssh2/ttxssh/auth.c
===================================================================
--- trunk/ttssh2/ttxssh/auth.c	2020-07-04 16:00:05 UTC (rev 8837)
+++ trunk/ttssh2/ttxssh/auth.c	2020-07-04 16:00:24 UTC (rev 8838)
@@ -1153,6 +1153,7 @@
 		default:
 			return FALSE;
 		}
+		return FALSE;
 
 	case WM_DESTROY:
 		if (hIconDropdown != NULL) {

Modified: trunk/ttssh2/ttxssh/fwdui.c
===================================================================
--- trunk/ttssh2/ttxssh/fwdui.c	2020-07-04 16:00:05 UTC (rev 8837)
+++ trunk/ttssh2/ttxssh/fwdui.c	2020-07-04 16:00:24 UTC (rev 8838)
@@ -140,7 +140,7 @@
 				          hostname + start, _TRUNCATE);
 			}
 			i++;
-			// don't break here
+			/* don't break here */	/* Falls through. */
 
 		case 3:
 			request->from_port = parse_port(argv[i], request->from_port_name,

Modified: trunk/ttssh2/ttxssh/sftp.c
===================================================================
--- trunk/ttssh2/ttxssh/sftp.c	2020-07-04 16:00:05 UTC (rev 8837)
+++ trunk/ttssh2/ttxssh/sftp.c	2020-07-04 16:00:24 UTC (rev 8838)
@@ -1096,6 +1096,7 @@
 				default:
 					return FALSE;
 			}
+			return TRUE;
 
 		case WM_USER_CONSOLE:
 			SendDlgItemMessage(hDlgWnd, IDC_SFTP_CONSOLE, EM_REPLACESEL, 0, (LPARAM) lp);


Ttssh2-commit メーリングリストの案内
Back to archive index