Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/SFileOpenArchive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,12 @@ bool WINAPI SFileOpenArchive(
ha->dwValidFileFlags = MPQ_FILE_VALID_FLAGS_W3X;
ha->dwFlags |= MPQ_FLAG_WAR3_MAP;
break;
case MapTypeNotChecked:
case MapTypeNotRecognized:
case MapTypeAviFile:
case MapTypeStarcraft2:
// silence -Wswitch-enum
break;
}

// Set the size of file sector. Be sure to check for integer overflow
Expand Down
6 changes: 2 additions & 4 deletions src/StormPort.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@
#ifndef __STORMPORT_H__
#define __STORMPORT_H__

#ifndef __cplusplus
#define bool char
#define true 1
#define false 0
#if !defined(__cplusplus) && !defined(_MSC_VER)
#include <stdbool.h>
#endif

//-----------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions test/StormTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3955,7 +3955,7 @@ static DWORD TestUtf8Conversions(const BYTE * szTestString, const TCHAR * szList

static void Test_PlayingSpace()
{

/*
HANDLE hMpq;
HANDLE hFile;
LPBYTE pbData;
Expand All @@ -3975,7 +3975,7 @@ static void Test_PlayingSpace()
}
SFileCloseArchive(hMpq);
}

*/
}

//-----------------------------------------------------------------------------
Expand Down