diff options
author | David Robillard <d@drobilla.net> | 2021-09-10 23:01:33 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-09-10 23:01:33 -0400 |
commit | 31a3e77b48bd63200538649c4292b2f61c68ee35 (patch) | |
tree | caa16f9ce6edb5192235f355c5904b1eb6be2487 | |
parent | b78600effbfb420007b7aac16da43d173930a753 (diff) | |
download | zix-31a3e77b48bd63200538649c4292b2f61c68ee35.tar.gz zix-31a3e77b48bd63200538649c4292b2f61c68ee35.tar.bz2 zix-31a3e77b48bd63200538649c4292b2f61c68ee35.zip |
Fix function attribute warnings
-rw-r--r-- | test/ring_test.c | 1 | ||||
-rw-r--r-- | test/strerror_test.c | 2 |
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) { |