]> git.sur5r.net Git - openldap/commitdiff
thr_debug: tweak debug_already_initialized().
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 23 Jan 2012 23:47:49 +0000 (00:47 +0100)
committerHallvard Furuseth <hallvard@openldap.org>
Tue, 24 Jan 2012 00:45:51 +0000 (01:45 +0100)
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

index 0b1e37aaaa6c7722bdea7c011b36948ae25954af..6d6307263cbf7b0d95c5d1e0fa9b532a01c77a63 100644 (file)
@@ -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 )
 {