summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-09-10 23:01:33 -0400
committerDavid Robillard <d@drobilla.net>2021-09-10 23:01:33 -0400
commit31a3e77b48bd63200538649c4292b2f61c68ee35 (patch)
treecaa16f9ce6edb5192235f355c5904b1eb6be2487
parentb78600effbfb420007b7aac16da43d173930a753 (diff)
downloadzix-31a3e77b48bd63200538649c4292b2f61c68ee35.tar.gz
zix-31a3e77b48bd63200538649c4292b2f61c68ee35.tar.bz2
zix-31a3e77b48bd63200538649c4292b2f61c68ee35.zip
Fix function attribute warnings
-rw-r--r--test/ring_test.c1
-rw-r--r--test/strerror_test.c2
2 files changed, 3 insertions, 0 deletions
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 <assert.h>
@@ -26,6 +27,7 @@ test_strerror(void)
assert(!strcmp(msg, "Unknown error"));
}
+ZIX_PURE_FUNC
int
main(void)
{