aboutsummaryrefslogtreecommitdiff
path: root/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'json.c')
-rw-r--r--json.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/json.c b/json.c
index f099554..22905cc 100644
--- a/json.c
+++ b/json.c
@@ -6,12 +6,14 @@
#include "types.h"
+__attribute__((nonnull))
+static int _json_match(const char *text, match_t *m, int comma, int verbose);
+
//
// Helper function for json_match().
// `comma` is used to track whether a comma will need to be printed before the
// next object or not.
//
-__attribute__((nonnull))
static int _json_match(const char *text, match_t *m, int comma, int verbose)
{
if (!verbose) {