# HG changeset patch # User Thomas Klausner # Date 1363373026 -3600 # Node ID ee8ea53034894d94e9c2a521ec6e73d1ddc5ea89 # Parent 0f376cab3dcb2f3558f4c212aca03eff3d3036d8 Put file_bname in #ifdef DEBUG, since it's only used there. diff -r 0f376cab3dcb -r ee8ea5303489 include/freeDiameter/libfdproto.h --- a/include/freeDiameter/libfdproto.h Thu Mar 14 18:46:05 2013 +0100 +++ b/include/freeDiameter/libfdproto.h Fri Mar 15 19:43:46 2013 +0100 @@ -242,13 +242,12 @@ #define __PRETTY_FUNCTION__ __func__ #endif /* __PRETTY_FUNCTION__ */ +#ifdef DEBUG /* A version of __FILE__ without the full path */ static char * file_bname = NULL; #define __STRIPPED_FILE__ (file_bname ?: (file_bname = basename((char *)__FILE__))) - /* Boolean for tracing at a certain level */ -#ifdef DEBUG #define TRACE_BOOL(_level_) ( ((_level_) <= fd_g_debug_lvl) \ || (fd_debug_one_function && !strcmp(fd_debug_one_function, __PRETTY_FUNCTION__)) \ || (fd_debug_one_file && !strcmp(fd_debug_one_file, __STRIPPED_FILE__) ) )