summaryrefslogtreecommitdiff
path: root/src/nbdebug.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-08-02 18:07:18 +0200
committerBram Moolenaar <Bram@vim.org>2021-08-02 18:07:18 +0200
commit952d9d827e5bfc66a6b1d39956e4e5596b09e2bd (patch)
tree0b2581eeaec39b6bad25b58f537d8ea1e893b79c /src/nbdebug.c
parent1321257317b7d28228a6a9a0d612f81f70290b4c (diff)
downloadvim-git-952d9d827e5bfc66a6b1d39956e4e5596b09e2bd.tar.gz
patch 8.2.3274: macro for printf format check can be simplifiedv8.2.3274
Problem: Macro for printf format check can be simplified. Solution: Add ATTRIBUTE_FORMAT_PRINTF(). (Dominique Pellé, issue #8635)
Diffstat (limited to 'src/nbdebug.c')
-rw-r--r--src/nbdebug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nbdebug.c b/src/nbdebug.c
index 43bee8d8f..c79081bea 100644
--- a/src/nbdebug.c
+++ b/src/nbdebug.c
@@ -32,7 +32,7 @@
FILE *nb_debug = NULL;
u_int nb_dlevel = 0; // nb_debug verbosity level
-void nbdb(char *, ...);
+void nbdb(char *, ...) ATTRIBUTE_FORMAT_PRINTF(1, 2);
static int lookup(char *);
#ifdef USE_NB_ERRORHANDLER