From 51f0f1d9ebe0ba2e97b30c7205bde5c26350dcd3 Mon Sep 17 00:00:00 2001 From: PengZheng Date: Sun, 28 Jan 2024 21:46:52 +0800 Subject: [PATCH] Fix compilation errors. --- libs/dfi/gtest/src/json_rpc_test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/dfi/gtest/src/json_rpc_test.c b/libs/dfi/gtest/src/json_rpc_test.c index 0219b9bb3..57227b8f1 100644 --- a/libs/dfi/gtest/src/json_rpc_test.c +++ b/libs/dfi/gtest/src/json_rpc_test.c @@ -18,18 +18,19 @@ */ #include "json_rpc_test.h" +#include "celix_compiler.h" #include #include #include #include #include -int add(void*, double a, double b, double *result) { +int add(void* handle CELIX_UNUSED, double a, double b, double *result) { *result = a + b; return 0; } -int stats(void*, struct tst_seq input, struct tst_StatsResult **out) { +int stats(void* handle CELIX_UNUSED, struct tst_seq input, struct tst_StatsResult **out) { assert(out != NULL); assert(*out == NULL); double total = 0.0;