util,compiler: Avoid use align as variable, replace it with other names
align is a function and when we want use it, the align variable will shadow it So replace it with other names Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26885>
This commit is contained in:
+2
-2
@@ -498,8 +498,8 @@ gc_ctx *gc_context(const void *parent);
|
||||
#define gc_zalloc_zla(ctx, type, type2, count) \
|
||||
gc_zalloc_size(ctx, sizeof(type) + sizeof(type2) * (count), MAX2(alignof(type), alignof(type2)))
|
||||
|
||||
void *gc_alloc_size(gc_ctx *ctx, size_t size, size_t align) MALLOCLIKE;
|
||||
void *gc_zalloc_size(gc_ctx *ctx, size_t size, size_t align) MALLOCLIKE;
|
||||
void *gc_alloc_size(gc_ctx *ctx, size_t size, size_t alignment) MALLOCLIKE;
|
||||
void *gc_zalloc_size(gc_ctx *ctx, size_t size, size_t alignment) MALLOCLIKE;
|
||||
void gc_free(void *ptr);
|
||||
gc_ctx *gc_get_context(void *ptr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user