From 999ff398d64a4a2a3bd39ee3c82e5085d05e96f7 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Tue, 24 Jan 2012 00:47:49 +0100 Subject: [PATCH] thr_debug: tweak debug_already_initialized(). With gcc, declare debug_already_initialized() as 'noinline' so its deliberate uninitialized access stays inside the function and valgrind can ignore it there. --- libraries/libldap_r/thr_debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/libldap_r/thr_debug.c b/libraries/libldap_r/thr_debug.c index 0b1e37aaaa..6d6307263c 100644 --- a/libraries/libldap_r/thr_debug.c +++ b/libraries/libldap_r/thr_debug.c @@ -481,6 +481,7 @@ debug_noop( void ) * * Returns true if the resource is initialized and not copied/realloced. */ +LDAP_GCCATTR((noinline)) static int debug_already_initialized( const ldap_debug_usage_info_t *usage ) { -- 2.39.5