Skip to content

Commit

Permalink
Fixed warning of unused fmt_yesno
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikolaj Malecki committed Jun 24, 2024
1 parent 2ed8df5 commit 487c857
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ const SRTSOCKET UDT::INVALID_SOCK = srt::CUDT::INVALID_SOCK;
const int UDT::ERROR = srt::CUDT::ERROR;

static inline char fmt_onoff(bool val) { return val ? '+' : '-'; }
#if ENABLE_HEAVY_LOGGING
static inline const char* fmt_yesno(bool a) { return a ? "yes" : "no"; }
#endif

//#define SRT_CMD_HSREQ 1 /* SRT Handshake Request (sender) */
#define SRT_CMD_HSREQ_MINSZ 8 /* Minumum Compatible (1.x.x) packet size (bytes) */
Expand Down

0 comments on commit 487c857

Please sign in to comment.