• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision10126 (tree)
Time2022-08-06 01:18:14
Authorzmatsuo

Log Message

ポインタの型が異なる警告を修正

- wchar_t* 以外のポインタでもつかえるよう void* で持つようにした
- warning: incompatible pointer types initializing 'void **'

with an expression of type 'wchar_t **' (aka 'unsigned short **')

Change Summary

Incremental Difference

--- trunk/teraterm/ttpset/ttset.c (revision 10125)
+++ trunk/teraterm/ttpset/ttset.c (revision 10126)
@@ -4201,21 +4201,21 @@
42014201 */
42024202 DllExport void TTSetUnInit(TTTSet *ts)
42034203 {
4204- wchar_t **ptr_list[] = {
4205- &ts->HomeDirW,
4206- &ts->SetupFNameW,
4207- &ts->KeyCnfFNW,
4208- &ts->EtermLookfeel.BGThemeFileW,
4209- &ts->EtermLookfeel.BGSPIPathW,
4210- &ts->UILanguageFileW,
4211- &ts->UILanguageFileW_ini,
4212- &ts->ExeDirW,
4213- &ts->LogDirW,
4214- &ts->FileDirW,
4215- &ts->BGImageFilePathW,
4216- &ts->LogDefaultPathW,
4217- &ts->MacroFNW,
4218- &ts->LogFNW,
4204+ void **ptr_list[] = {
4205+ (void **)&ts->HomeDirW,
4206+ (void **)&ts->SetupFNameW,
4207+ (void **)&ts->KeyCnfFNW,
4208+ (void **)&ts->EtermLookfeel.BGThemeFileW,
4209+ (void **)&ts->EtermLookfeel.BGSPIPathW,
4210+ (void **)&ts->UILanguageFileW,
4211+ (void **)&ts->UILanguageFileW_ini,
4212+ (void **)&ts->ExeDirW,
4213+ (void **)&ts->LogDirW,
4214+ (void **)&ts->FileDirW,
4215+ (void **)&ts->BGImageFilePathW,
4216+ (void **)&ts->LogDefaultPathW,
4217+ (void **)&ts->MacroFNW,
4218+ (void **)&ts->LogFNW,
42194219 };
42204220 int i;
42214221 for(i = 0; i < _countof(ptr_list); i++) {
Show on old repository browser