From: Andy H. <And...@au...> - 2009-05-19 11:45:46
|
I have some code that uses the pre-processor to generate code to log messages: #define logDebug if ( Log::minLevel <= Log::LVL_DEBUG ) Log::printLog Helgrind reports data races ultimately due to the global Log::minLevel. While technically this is a potential race condition, Log::minLevel is essentially a constant after startup. I tried to add suppressions for the mangled Log::printLog method, however because of the #define, helgrind reports the race on lines where LogDebug is used, not the Log::printLog method. Is there any way to add a suppression based on the global variable? Thanks, Andy |