From f126721357484a9c79fcdd17acb95e558308a5b7 Mon Sep 17 00:00:00 2001 From: Stanley Chan Date: Fri, 2 Oct 2020 01:24:57 -0500 Subject: Fix quickfix.c warning message on EMSGN macro ``` /Users/stahn_mchan/sources/neovim/src/nvim/quickfix.c:1775:5: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat] EMSGN("quickfix_busy not zero on exit: %ld", (long)quickfix_busy); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lld /Users/stahn_mchan/sources/neovim/src/nvim/message.h:49:63: note: expanded from macro 'EMSGN' ``` --- src/nvim/quickfix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 0c9902aaec..329f6fd808 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -1772,7 +1772,7 @@ static void decr_quickfix_busy(void) void check_quickfix_busy(void) { if (quickfix_busy != 0) { - EMSGN("quickfix_busy not zero on exit: %ld", (long)quickfix_busy); + EMSGN("quickfix_busy not zero on exit: %" PRId64, (int64_t)quickfix_busy); # ifdef ABORT_ON_INTERNAL_ERROR abort(); # endif -- cgit