diff --git a/client/Windows/wf_floatbar.c b/client/Windows/wf_floatbar.c index 793569bc6..b5fe3207d 100644 --- a/client/Windows/wf_floatbar.c +++ b/client/Windows/wf_floatbar.c @@ -357,18 +357,10 @@ static BOOL floatbar_paint(wfFloatBar* const floatbar, const HDC hdc) int bottom = BACKGROUND_H - 1; int right = BACKGROUND_W - 1; const int angleOffset = BACKGROUND_H - 1; - TRIVERTEX triVertext[2] = { left, - top, - GetRValue(rgbTop) << 8, - GetGValue(rgbTop) << 8, - GetBValue(rgbTop) << 8, - 0x0000, - right, - bottom, - GetRValue(rgbBottom) << 8, - GetGValue(rgbBottom) << 8, - GetBValue(rgbBottom) << 8, - 0x0000 }; + TRIVERTEX triVertext[2] = { { left, top, GetRValue(rgbTop) << 8, GetGValue(rgbTop) << 8, + GetBValue(rgbTop) << 8, 0x0000 }, + { right, bottom, GetRValue(rgbBottom) << 8, + GetGValue(rgbBottom) << 8, GetBValue(rgbBottom) << 8, 0x0000 } }; if (!floatbar) return FALSE; diff --git a/libfreerdp/utils/stopwatch.c b/libfreerdp/utils/stopwatch.c index b30890cd9..4dc207b65 100644 --- a/libfreerdp/utils/stopwatch.c +++ b/libfreerdp/utils/stopwatch.c @@ -27,7 +27,7 @@ #include #ifdef _WIN32 -LARGE_INTEGER stopwatch_freq = { 0, 0 }; +LARGE_INTEGER stopwatch_freq = { 0 }; #else #include #endif diff --git a/server/Windows/wf_mirage.c b/server/Windows/wf_mirage.c index 272bcbc64..524ff6e0e 100644 --- a/server/Windows/wf_mirage.c +++ b/server/Windows/wf_mirage.c @@ -195,7 +195,6 @@ void wf_mirror_driver_print_display_change_status(LONG status) BOOL wf_mirror_driver_update(wfInfo* wfi, int mode) { - HDC dc; BOOL status; DWORD* extHdr; WORD drvExtraSaved; diff --git a/winpr/libwinpr/file/generic.c b/winpr/libwinpr/file/generic.c index 2faee83ad..7f230fe6d 100644 --- a/winpr/libwinpr/file/generic.c +++ b/winpr/libwinpr/file/generic.c @@ -1299,7 +1299,6 @@ int UnixChangeFileMode(const char* filename, int flags) #else int rc; WCHAR* wfl = NULL; - int fl = 0; if (ConvertToUnicode(CP_UTF8, 0, filename, -1, &wfl, 0) <= 0) return -1; diff --git a/winpr/libwinpr/synch/sleep.c b/winpr/libwinpr/synch/sleep.c index 05e7c53c5..7de1a3a52 100644 --- a/winpr/libwinpr/synch/sleep.c +++ b/winpr/libwinpr/synch/sleep.c @@ -117,9 +117,9 @@ VOID USleep(DWORD dwMicroseconds) #ifndef _WIN32 usleep(dwMicroseconds); #else - static LARGE_INTEGER freq = { 0, 0 }; - LARGE_INTEGER t1 = { 0, 0 }; - LARGE_INTEGER t2 = { 0, 0 }; + static LARGE_INTEGER freq = { 0 }; + LARGE_INTEGER t1 = { 0 }; + LARGE_INTEGER t2 = { 0 }; QueryPerformanceCounter(&t1);