Fix unused-variable warnings when LOG_* macros are not used and variable is not printed (not used at all).