mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
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'
```
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user