From eba876d78708b086fc48abd38cd4e638e282b853 Mon Sep 17 00:00:00 2001 From: Michael Lentine Date: Wed, 3 Feb 2016 16:51:46 -0600 Subject: layers: Enable Wall and Werror. --- layers/vk_layer_table.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'layers/vk_layer_table.cpp') diff --git a/layers/vk_layer_table.cpp b/layers/vk_layer_table.cpp index 3cee6ddb..9277a8d8 100644 --- a/layers/vk_layer_table.cpp +++ b/layers/vk_layer_table.cpp @@ -1,6 +1,7 @@ /* Copyright (c) 2015-2016 The Khronos Group Inc. * Copyright (c) 2015-2016 Valve Corporation * Copyright (c) 2015-2016 LunarG, Inc. + * Copyright (c) 2015-2016 Google, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and/or associated documentation files (the "Materials"), to @@ -63,8 +64,8 @@ VkLayerInstanceDispatchTable *instance_dispatch_table(void* object) void destroy_dispatch_table(device_table_map &map, dispatch_key key) { - device_table_map::const_iterator it = map.find((void *) key); #if DISPATCH_MAP_DEBUG + device_table_map::const_iterator it = map.find((void *)key); if (it != map.end()) { fprintf(stderr, "destroy device dispatch_table: map: %p, key: %p, table: %p\n", &map, key, it->second); } else { @@ -77,8 +78,8 @@ void destroy_dispatch_table(device_table_map &map, dispatch_key key) void destroy_dispatch_table(instance_table_map &map, dispatch_key key) { - instance_table_map::const_iterator it = map.find((void *) key); #if DISPATCH_MAP_DEBUG + instance_table_map::const_iterator it = map.find((void *)key); if (it != map.end()) { fprintf(stderr, "destroy instance dispatch_table: map: %p, key: %p, table: %p\n", &map, key, it->second); } else { -- cgit v1.2.3