Skip to content

Commit

Permalink
Avoid multiple warnings "adding int to string would not append it" in…
Browse files Browse the repository at this point in the history
… RNP_LOG.
  • Loading branch information
ni4 committed Jan 7, 2025
1 parent 6e1fe97 commit 81127c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ class LogStop {
};
} // namespace rnp

#define __SOURCE_PATH_FILE__ (__FILE__ + SOURCE_PATH_SIZE + 3 /* remove "src" */)
/* remove "src" */
#define __SOURCE_PATH_FILE__ (&(__FILE__[SOURCE_PATH_SIZE + 3]))

#define RNP_LOG_FD(fd, ...) \
do { \
Expand Down

0 comments on commit 81127c0

Please sign in to comment.