Mesa (master): anv: Remove semicolons from vk_error[f] definitions
Jason Ekstrand
jekstrand at kemper.freedesktop.org
Wed Jan 24 08:26:13 UTC 2018
Module: Mesa
Branch: master
Commit: d5592e2fdaa9ce8b98d38b2d29e2a7d2c4abda08
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d5592e2fdaa9ce8b98d38b2d29e2a7d2c4abda08
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Fri Dec 15 13:41:21 2017 -0800
anv: Remove semicolons from vk_error[f] definitions
With the semicolons, they can't be used in a function argument without
throwing syntax errors.
Tested-by: Józef Kucia <joseph.kucia at gmail.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
Cc: "18.0" <mesa-stable at lists.freedesktop.org>
---
src/intel/vulkan/anv_private.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index fb5174abbd..416b946ea9 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -313,10 +313,10 @@ VkResult __vk_errorf(struct anv_instance *instance, const void *object,
#ifdef DEBUG
#define vk_error(error) __vk_errorf(NULL, NULL,\
VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT,\
- error, __FILE__, __LINE__, NULL);
+ error, __FILE__, __LINE__, NULL)
#define vk_errorf(instance, obj, error, format, ...)\
__vk_errorf(instance, obj, REPORT_OBJECT_TYPE(obj), error,\
- __FILE__, __LINE__, format, ## __VA_ARGS__);
+ __FILE__, __LINE__, format, ## __VA_ARGS__)
#else
#define vk_error(error) error
#define vk_errorf(instance, obj, error, format, ...) error
More information about the mesa-commit
mailing list