Skip to content

Commit

Permalink
main: suppress the warning "warning: unknown conversion type characte…
Browse files Browse the repository at this point in the history
…r 'l' in format [-Wformat=]"

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
  • Loading branch information
masatake committed May 9, 2023
1 parent f3a2a30 commit ceda2dc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions main/field.c
Original file line number Diff line number Diff line change
Expand Up @@ -1141,11 +1141,16 @@ static const char *renderFieldEpoch (const tagEntryInfo *const tag,
{
#define buf_len 21
static char buf[buf_len];

if (snprintf (buf, buf_len, "%lld", (long long)tag->extensionFields.epoch) > 0)
#ifdef _MSC_VER
#define FMTLL "%I64d"
#else
#define FMTLL "%lld"
#endif
if (snprintf (buf, buf_len, FMTLL, (long long)tag->extensionFields.epoch) > 0)
return renderAsIs (b, buf);
else
return NULL;
#undef FMTLL
#undef buf_len
}

Expand Down

0 comments on commit ceda2dc

Please sign in to comment.