From f4c384684af5bde1397e377e10e2b7e7ffd35ae4 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Mon, 17 Jan 2022 17:22:03 +0100 Subject: Use PRId64 to print int64_t The previous commit as taken from upstream introduces a compiler warning for parse.y: parse.y:110:42: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘int64_t’ Quelch this warning by using PRId64 from inttypes.h --- parse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parse.y b/parse.y index 4423a2a..5920793 100644 --- a/parse.y +++ b/parse.y @@ -22,6 +22,7 @@ %{ #include +#include #include "queue.h" #include @@ -106,7 +107,7 @@ string : string STRING { numberstring : NUMBER { char *s; - if (asprintf(&s, "%lld", $1) == -1) { + if (asprintf(&s, "%" PRId64, $1) == -1) { yyerror("string: asprintf"); YYERROR; } -- cgit v1.2.3-2-gb3c3