aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-11-24 16:40:49 -0500
committerDavid Robillard <d@drobilla.net>2022-11-24 16:40:49 -0500
commitf2ea3154a742238f0b9943bb58efd0627ffda3e8 (patch)
tree0da78eafde795ef26068ea606314ef45d2013cdc /src/reader.h
parent055735f696138614d51e92f1152bb02f0cfbefe0 (diff)
downloadserd-f2ea3154a742238f0b9943bb58efd0627ffda3e8.tar.gz
serd-f2ea3154a742238f0b9943bb58efd0627ffda3e8.tar.bz2
serd-f2ea3154a742238f0b9943bb58efd0627ffda3e8.zip
Gracefully handle bad characters in Turtle blank node syntax
Diffstat (limited to 'src/reader.h')
-rw-r--r--src/reader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/reader.h b/src/reader.h
index 689eeecb..cccaa8a9 100644
--- a/src/reader.h
+++ b/src/reader.h
@@ -4,6 +4,7 @@
#ifndef SERD_READER_H
#define SERD_READER_H
+#include "attributes.h"
#include "byte_source.h"
#include "stack.h"
@@ -131,7 +132,7 @@ eat_byte_safe(SerdReader* reader, const int byte)
return c;
}
-static inline int
+static inline int SERD_NODISCARD
eat_byte_check(SerdReader* reader, const int byte)
{
const int c = peek_byte(reader);