diff options
| author | Courtney Goeltzenleuchter <courtneygo@google.com> | 2015-11-30 11:52:06 -0700 |
|---|---|---|
| committer | Jon Ashburn <jon@lunarg.com> | 2015-12-15 09:17:29 -0700 |
| commit | 04ae89b52db50c754273a052d9171b6d6b43c72f (patch) | |
| tree | 790193fb63455b4394a2d4a7f2df96cfecfe0a0e | |
| parent | 8f7032cfde9684d7db4f2ec92fa90feed476fcd4 (diff) | |
| download | usermoji-04ae89b52db50c754273a052d9171b6d6b43c72f.tar.xz | |
debug_report: Make pUserData always a const
This prevents compiler warnings.
| -rw-r--r-- | demos/cube.c | 2 | ||||
| -rw-r--r-- | include/vulkan/vk_lunarg_debug_report.h | 2 | ||||
| -rw-r--r-- | layers/vk_layer_logging.h | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/demos/cube.c b/demos/cube.c index b85ef55d..a8ef8433 100644 --- a/demos/cube.c +++ b/demos/cube.c @@ -263,7 +263,7 @@ VkBool32 dbgFunc( int32_t msgCode, const char* pLayerPrefix, const char* pMsg, - void* pUserData) + const void* pUserData) { char *message = (char *) malloc(strlen(pMsg)+100); diff --git a/include/vulkan/vk_lunarg_debug_report.h b/include/vulkan/vk_lunarg_debug_report.h index 50ee9ea8..7dce07e9 100644 --- a/include/vulkan/vk_lunarg_debug_report.h +++ b/include/vulkan/vk_lunarg_debug_report.h @@ -122,7 +122,7 @@ typedef VkBool32 (*PFN_vkDbgMsgCallback)( int32_t msgCode, const char* pLayerPrefix, const char* pMsg, - void* pUserData); + const void* pUserData); // ------------------------------------------------------------------------------------------------ // API functions diff --git a/layers/vk_layer_logging.h b/layers/vk_layer_logging.h index 5f9fe51e..8a38d421 100644 --- a/layers/vk_layer_logging.h +++ b/layers/vk_layer_logging.h @@ -300,7 +300,7 @@ static inline VKAPI_ATTR VkBool32 VKAPI_CALL log_callback( int32_t msgCode, const char* pLayerPrefix, const char* pMsg, - void* pUserData) + const void* pUserData) { char msg_flags[30]; @@ -321,7 +321,7 @@ static inline VKAPI_ATTR VkBool32 VKAPI_CALL win32_debug_output_msg( int32_t msgCode, const char* pLayerPrefix, const char* pMsg, - void* pUserData) + const void* pUserData) { #ifdef WIN32 char msg_flags[30]; |
