[Bf-blender-cvs] [ec2938c71a5] blender-v3.3-release: Cleanup: quiet missing-variable-declarations warning

Campbell Barton noreply at git.blender.org
Wed Sep 21 14:27:10 CEST 2022


Commit: ec2938c71a52382f86ae4ba051fe65f74e16f9e4
Author: Campbell Barton
Date:   Tue Sep 13 10:35:01 2022 +1000
Branches: blender-v3.3-release
https://developer.blender.org/rBec2938c71a52382f86ae4ba051fe65f74e16f9e4

Cleanup: quiet missing-variable-declarations warning

===================================================================

M	intern/libc_compat/libc_compat.c

===================================================================

diff --git a/intern/libc_compat/libc_compat.c b/intern/libc_compat/libc_compat.c
index 626490aa8e2..97e3f518c58 100644
--- a/intern/libc_compat/libc_compat.c
+++ b/intern/libc_compat/libc_compat.c
@@ -118,6 +118,11 @@ float __powf_finite(float x, float y)
 
 #    if __GLIBC_PREREQ(2, 34)
 
+extern void *(*__malloc_hook)(size_t __size, const void *);
+extern void *(*__realloc_hook)(void *__ptr, size_t __size, const void *);
+extern void *(*__memalign_hook)(size_t __alignment, size_t __size, const void *);
+extern void (*__free_hook)(void *__ptr, const void *);
+
 void *(*__malloc_hook)(size_t __size, const void *) = NULL;
 void *(*__realloc_hook)(void *__ptr, size_t __size, const void *) = NULL;
 void *(*__memalign_hook)(size_t __alignment, size_t __size, const void *) = NULL;



More information about the Bf-blender-cvs mailing list