1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

ClangCl: Silence code which warns when building on Windows with Clang

This commit is contained in:
reuk 2020-04-25 22:31:22 +01:00
parent aa139f8b07
commit e13901d912
20 changed files with 66 additions and 52 deletions

View file

@ -106,7 +106,7 @@ struct CameraDevice::Pimpl : public ChangeBroadcaster
return;
{
AM_MEDIA_TYPE mt = { 0 };
AM_MEDIA_TYPE mt = {};
mt.majortype = MEDIATYPE_Video;
mt.subtype = MEDIASUBTYPE_RGB24;
mt.formattype = FORMAT_VideoInfo;
@ -130,7 +130,7 @@ struct CameraDevice::Pimpl : public ChangeBroadcaster
if (FAILED (hr))
return;
AM_MEDIA_TYPE mt = { 0 };
AM_MEDIA_TYPE mt = {};
hr = sampleGrabber->GetConnectedMediaType (&mt);
VIDEOINFOHEADER* pVih = (VIDEOINFOHEADER*) (mt.pbFormat);
width = pVih->bmiHeader.biWidth;
@ -687,7 +687,7 @@ private:
if (wantedDirection == dir)
{
PIN_INFO info = { 0 };
PIN_INFO info = {};
pin->QueryPinInfo (&info);
if (pinName == nullptr || String (pinName).equalsIgnoreCase (String (info.achName)))

View file

@ -847,10 +847,10 @@ private:
HINSTANCE moduleHandle = (HINSTANCE) Process::getCurrentModuleInstanceHandle();
TCHAR moduleFile [1024] = { 0 };
TCHAR moduleFile [1024] = {};
GetModuleFileName (moduleHandle, moduleFile, 1024);
WNDCLASSEX wcex = { 0 };
WNDCLASSEX wcex = {};
wcex.cbSize = sizeof (wcex);
wcex.style = CS_OWNDC;
wcex.lpfnWndProc = (WNDPROC) wndProc;