set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_CRT_SECURE_NO_WARNINGS /bigobj")
set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_CRT_SECURE_NO_WARNINGS /bigobj")
else()
- set (CMAKE_CXX_FLAGS "-std=c++11")
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wpointer-arith")
- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wpointer-arith")
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wpointer-arith -Wno-unused-function -Wno-sign-compare")
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wpointer-arith -Wno-unused-function -Wno-sign-compare")
endif()
add_custom_command(OUTPUT vk_dispatch_table_helper.h
result = get_dispatch_table(pc_instance_table_map, physicalDevice)
->GetPhysicalDeviceXlibPresentationSupportKHR(physicalDevice, queueFamilyIndex, dpy, visualID);
}
+ return result;
}
#endif // VK_USE_PLATFORM_XLIB_KHR
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
-if (NOT WIN32)
- set (CMAKE_CXX_FLAGS "-std=c++11")
-endif()
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../../loader
add_library(vkjson STATIC vkjson.cc vkjson_instance.cc ../../loader/cJSON.c)
if(UNIX)
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-sign-compare")
add_executable(vkjson_unittest vkjson_unittest.cc)
add_executable(vkjson_info vkjson_info.cc)
else()
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_CRT_SECURE_NO_WARNINGS /bigobj")
set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_CRT_SECURE_NO_WARNINGS /bigobj")
else()
- set (CMAKE_CXX_FLAGS "-std=c++11")
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wpointer-arith")
- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wpointer-arith")
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wpointer-arith -Wno-unused-function")
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wpointer-arith -Wno-unused-function")
endif()
add_custom_command(OUTPUT vk_dispatch_table_helper.h
return addr;
wrapped_inst_obj *inst;
- auto vk_inst = unwrap_instance(instance, &inst);
+ (void)unwrap_instance(instance, &inst);
VkLayerInstanceDispatchTable* pTable = &inst->layer_disp;
// EXT_debug_report