diff --git a/rpcs3/Emu/RSX/VK/VulkanAPI.h b/rpcs3/Emu/RSX/VK/VulkanAPI.h index 82cdc8900d35..95eb77a835b2 100644 --- a/rpcs3/Emu/RSX/VK/VulkanAPI.h +++ b/rpcs3/Emu/RSX/VK/VulkanAPI.h @@ -8,12 +8,16 @@ #define VK_USE_PLATFORM_XLIB_KHR #endif +#ifdef _MSC_VER #pragma warning( push ) #pragma warning( disable : 4005 ) +#endif #include #include +#ifdef _MSC_VER #pragma warning(pop) +#endif #include diff --git a/rpcs3/cmake_modules/ConfigureCompiler.cmake b/rpcs3/cmake_modules/ConfigureCompiler.cmake index fb5463c06d3e..bee92c2c6575 100644 --- a/rpcs3/cmake_modules/ConfigureCompiler.cmake +++ b/rpcs3/cmake_modules/ConfigureCompiler.cmake @@ -34,7 +34,6 @@ else() #TODO Clean the code so these are removed add_compile_options(-Wno-unused-variable) - add_compile_options(-Wno-unknown-pragmas) add_compile_options(-Wno-unused-function) add_compile_options(-Wno-attributes)