Revision: 10388 https://osdn.net/projects/ttssh2/scm/svn/commits/10388 Author: zmatsuo Date: 2022-11-28 22:56:09 +0900 (Mon, 28 Nov 2022) Log Message: ----------- コンパイラの警告対応 警告: ISO C++ forbids converting a string constant to ‘wchar_t*’ 警告: unused variable ‘format’ Modified Paths: -------------- trunk/teraterm/common/ttgdiplus.cpp trunk/teraterm/teraterm/addsetting.cpp -------------- next part -------------- Modified: trunk/teraterm/common/ttgdiplus.cpp =================================================================== --- trunk/teraterm/common/ttgdiplus.cpp 2022-11-27 13:51:05 UTC (rev 10387) +++ trunk/teraterm/common/ttgdiplus.cpp 2022-11-28 13:56:09 UTC (rev 10388) @@ -130,8 +130,6 @@ GDIPSavePNG(&bitmap, L"test.png"); #endif - Gdiplus::PixelFormat format = bitmap.GetPixelFormat(); - HBITMAP hBmp; Gdiplus::Color bgColor = Gdiplus::Color(0, 0, 0); Gdiplus::Status r = bitmap.GetHBITMAP(bgColor, &hBmp); Modified: trunk/teraterm/teraterm/addsetting.cpp =================================================================== --- trunk/teraterm/teraterm/addsetting.cpp 2022-11-27 13:51:05 UTC (rev 10387) +++ trunk/teraterm/teraterm/addsetting.cpp 2022-11-28 13:56:09 UTC (rev 10388) @@ -231,7 +231,7 @@ switch (wParam) { case IDC_NOTIFICATION_TEST | (BN_CLICKED << 16): { PComVar pcv = &cv; - wchar_t *msg = L"Test button was pushed"; + const wchar_t *msg = L"Test button was pushed"; BOOL prev_sound = NotifyGetSound(pcv); BOOL notify_sound = (BOOL)GetCheck(IDC_NOTIFY_SOUND); NotifySetSound(pcv, notify_sound);