From: Hallvard Furuseth Date: Mon, 23 Jan 2012 23:47:49 +0000 (+0100) Subject: thr_debug: tweak debug_already_initialized(). X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=999ff398d64a4a2a3bd39ee3c82e5085d05e96f7;p=openldap 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. --- 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 ) {