From 2a9ef9badca067d8b1f66bbd083a30864d86cd88 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Fri, 4 Feb 2011 21:24:13 +0000 Subject: [PATCH] Silence gcc -Wformat: Cast printf %p arg to void* --- servers/slapd/back-bdb/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index c4b50191ba..468b565142 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -1545,7 +1545,7 @@ bdb_lru_count( Cache *cache ) ent++; if ( e->bei_state & CACHE_ENTRY_NOT_CACHED ) nc++; - fprintf( stderr, "ei %d entry %p dn %s\n", ei, e->bei_e, e->bei_e->e_name.bv_val ); + fprintf( stderr, "ei %d entry %p dn %s\n", ei, (void *) e->bei_e, e->bei_e->e_name.bv_val ); } e = e->bei_lrunext; if ( e == cache->c_lrutail ) -- 2.39.5