Skip to content

Commit

Permalink
Merge pull request #8 from tarunik/master
Browse files Browse the repository at this point in the history
Stop LogTrace() from emitting a compiler warning when called with a plain string
  • Loading branch information
azonenberg authored Oct 6, 2020
2 parents cd2aab8 + 0d7d668 commit 36b787d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions log.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ bool ParseLoggerArguments(

///Helper for logging "trace" messages with the function name prepended to the message
#ifdef __GNUC__
#define LogTrace(fmt, ...) LogDebugTrace(__PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
#define LogTrace(...) LogDebugTrace(__PRETTY_FUNCTION__, ##__VA_ARGS__)
#else
#define LogTrace(fmt, ...) LogDebugTrace(__func__, fmt, __VA_ARGS__)
#define LogTrace(...) LogDebugTrace(__func__, __VA_ARGS__)
#endif

ATTR_FORMAT(1, 2) void LogVerbose(const char *format, ...);
Expand Down

0 comments on commit 36b787d

Please sign in to comment.