diff options
author | David Robillard <d@drobilla.net> | 2022-11-24 16:40:49 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-11-24 16:40:49 -0500 |
commit | f2ea3154a742238f0b9943bb58efd0627ffda3e8 (patch) | |
tree | 0da78eafde795ef26068ea606314ef45d2013cdc /src/attributes.h | |
parent | 055735f696138614d51e92f1152bb02f0cfbefe0 (diff) | |
download | serd-f2ea3154a742238f0b9943bb58efd0627ffda3e8.tar.gz serd-f2ea3154a742238f0b9943bb58efd0627ffda3e8.tar.bz2 serd-f2ea3154a742238f0b9943bb58efd0627ffda3e8.zip |
Gracefully handle bad characters in Turtle blank node syntax
Diffstat (limited to 'src/attributes.h')
-rw-r--r-- | src/attributes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/attributes.h b/src/attributes.h index 25eb91d0..502634b0 100644 --- a/src/attributes.h +++ b/src/attributes.h @@ -10,4 +10,10 @@ # define SERD_MALLOC_FUNC #endif +#ifdef __GNUC__ +# define SERD_NODISCARD __attribute__((warn_unused_result)) +#else +# define SERD_NODISCARD +#endif + #endif // SERD_ATTRIBUTES_H |