From 7ceba786800e8e4d728c13f07d8b9e2788eeab17 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 9 Jan 2021 19:16:02 +0100 Subject: Add missing pure attributes --- src/byte_source.h | 2 +- src/writer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/byte_source.h b/src/byte_source.h index a8045c64..48794a37 100644 --- a/src/byte_source.h +++ b/src/byte_source.h @@ -70,7 +70,7 @@ serd_byte_source_prepare(SerdByteSource* source); SerdStatus serd_byte_source_page(SerdByteSource* source); -static inline uint8_t +static inline SERD_PURE_FUNC uint8_t serd_byte_source_peek(SerdByteSource* source) { assert(source->prepared); diff --git a/src/writer.c b/src/writer.c index 12c94e9c..82ac5eeb 100644 --- a/src/writer.c +++ b/src/writer.c @@ -150,7 +150,7 @@ w_err(SerdWriter* writer, SerdStatus st, const char* fmt, ...) va_end(args); } -static inline WriteContext* +static inline SERD_PURE_FUNC WriteContext* anon_stack_top(SerdWriter* writer) { assert(!serd_stack_is_empty(&writer->anon_stack)); -- cgit v1.2.1