Browse Source

Minor warning fixes for mingw

tags/2021-05-28
jules 11 years ago
parent
commit
cd30b3bfd1
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      modules/juce_audio_devices/native/juce_win32_WASAPI.cpp
  2. +1
    -1
      modules/juce_core/zip/juce_ZipFile.cpp

+ 2
- 2
modules/juce_audio_devices/native/juce_win32_WASAPI.cpp View File

@@ -33,8 +33,8 @@ namespace WasapiClasses
void logFailure (HRESULT hr)
{
(void) hr;
jassert (hr != 0x800401f0); // If you hit this, it means you're trying to call from
// a thread which hasn't been initialised with CoInitialize().
jassert (hr != (HRESULT) 0x800401f0); // If you hit this, it means you're trying to call from
// a thread which hasn't been initialised with CoInitialize().
#if JUCE_WASAPI_LOGGING
if (FAILED (hr))


+ 1
- 1
modules/juce_core/zip/juce_ZipFile.cpp View File

@@ -347,7 +347,7 @@ void ZipFile::init()
in->setPosition (pos);
MemoryBlock headerData;
if (in->readIntoMemoryBlock (headerData, size) == size)
if (in->readIntoMemoryBlock (headerData, size) == (size_t) size)
{
pos = 0;


Loading…
Cancel
Save