Skip to content

Commit c7d1b58

Browse files
Fixes for compilation under Linux gcc and clang. #2
1 parent 6277abb commit c7d1b58

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

premake/premake5.lua

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ buildoptions { "/MD" }
6161

6262

6363
project "VmaReplay"
64+
removeplatforms { "Linux-x64" }
6465
kind "ConsoleApp"
6566
language "C++"
6667
location "../build"

src/VmaUsage.h

+9
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,18 @@ include all public interface declarations. Example:
3636

3737
#else // #ifdef _WIN32
3838

39+
#ifdef __clang__
40+
#pragma clang diagnostic push
41+
#pragma clang diagnostic ignored "-Wtautological-compare" // comparison of unsigned expression < 0 is always false
42+
#endif
43+
3944
#include <vulkan/vulkan.h>
4045
#include "vk_mem_alloc.h"
4146

47+
#ifdef __clang__
48+
#pragma clang diagnostic pop
49+
#endif
50+
4251
#endif // #ifdef _WIN32
4352

4453
#endif

0 commit comments

Comments
 (0)