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.
This commit is contained in:
Hallvard Furuseth 2012-01-24 00:47:49 +01:00
parent 624642ba83
commit 999ff398d6

View 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 )
{