[Ttssh2-commit] [8672] コンパイラ警告対策

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2020年 4月 4日 (土) 00:32:33 JST


Revision: 8672
          https://osdn.net/projects/ttssh2/scm/svn/commits/8672
Author:   zmatsuo
Date:     2020-04-04 00:32:32 +0900 (Sat, 04 Apr 2020)
Log Message:
-----------
コンパイラ警告対策

- warning: 'result' may be used uninitialized in this function

Modified Paths:
--------------
    trunk/teraterm/common/ttlib.c

-------------- next part --------------
Modified: trunk/teraterm/common/ttlib.c
===================================================================
--- trunk/teraterm/common/ttlib.c	2020-04-02 14:29:37 UTC (rev 8671)
+++ trunk/teraterm/common/ttlib.c	2020-04-03 15:32:32 UTC (rev 8672)
@@ -1319,6 +1319,9 @@
 			result = dwlConditionMask & ~mask;
 			result |= op << (7 * 3);
 			break;
+		default:
+			result = 0;
+			break;
 	}
 
 	return result;


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