From 3a94319ad47df6208bee53d6a3324835d764d039 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 6 Apr 2019 14:20:00 +0200 Subject: [PATCH] json: fix compiler warning --- lib/formats/json.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/formats/json.c b/lib/formats/json.c index 074bf85d2..99b65f941 100644 --- a/lib/formats/json.c +++ b/lib/formats/json.c @@ -133,7 +133,8 @@ static int json_pack_sample(struct io *io, json_t **j, struct sample *smp) ); break; - case SIGNAL_TYPE_INVALID: { } + case SIGNAL_TYPE_INVALID: + return -1; } json_array_append(json_data, json_value);