From 31a3e77b48bd63200538649c4292b2f61c68ee35 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 10 Sep 2021 23:01:33 -0400 Subject: Fix function attribute warnings --- test/ring_test.c | 1 + test/strerror_test.c | 2 ++ 2 files changed, 3 insertions(+) (limited to 'test') diff --git a/test/ring_test.c b/test/ring_test.c index 447eba6..b4fa5f1 100644 --- a/test/ring_test.c +++ b/test/ring_test.c @@ -33,6 +33,7 @@ gen_msg(int* const msg, int start) return start; } +ZIX_PURE_FUNC static int cmp_msg(const int* const msg1, const int* const msg2) { diff --git a/test/strerror_test.c b/test/strerror_test.c index a368c68..b5fd10f 100644 --- a/test/strerror_test.c +++ b/test/strerror_test.c @@ -3,6 +3,7 @@ #undef NDEBUG +#include "zix/attributes.h" #include "zix/common.h" #include @@ -26,6 +27,7 @@ test_strerror(void) assert(!strcmp(msg, "Unknown error")); } +ZIX_PURE_FUNC int main(void) { -- cgit v1.2.1