diff options
| author | Michael Lentine <mlentine@google.com> | 2016-02-03 16:51:46 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-02-10 09:19:29 -0700 |
| commit | eba876d78708b086fc48abd38cd4e638e282b853 (patch) | |
| tree | 018123c70b06e3a1b477fc0907a9360a44426bf9 /layers/vk_layer_table.cpp | |
| parent | 32bce170582e151c13df697f410a8ccda72454b3 (diff) | |
| download | usermoji-eba876d78708b086fc48abd38cd4e638e282b853.tar.xz | |
layers: Enable Wall and Werror.
Diffstat (limited to 'layers/vk_layer_table.cpp')
| -rw-r--r-- | layers/vk_layer_table.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 { |
