diff options
author | David Robillard <d@drobilla.net> | 2020-07-06 10:34:55 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-06 10:34:55 +0200 |
commit | 9f17e7498c9527c85e292914f7e874c045dccc75 (patch) | |
tree | 6049662546a912eed501b54642b400fb73ea319d /src/writer.c | |
parent | ed4c28d84c9411e46a0a53efc97c4966ef7ad3d7 (diff) | |
download | serd-9f17e7498c9527c85e292914f7e874c045dccc75.tar.gz serd-9f17e7498c9527c85e292914f7e874c045dccc75.tar.bz2 serd-9f17e7498c9527c85e292914f7e874c045dccc75.zip |
Fix spurious semicolon warnings
Diffstat (limited to 'src/writer.c')
-rw-r--r-- | src/writer.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/writer.c b/src/writer.c index f4edf731..9881f00f 100644 --- a/src/writer.c +++ b/src/writer.c @@ -697,9 +697,11 @@ serd_writer_write_statement(SerdWriter* writer, } #define TRY(write_result) \ - if (!(write_result)) { \ - return SERD_ERR_UNKNOWN; \ - } + do { \ + if (!(write_result)) { \ + return SERD_ERR_UNKNOWN; \ + } \ + } while (0) switch (writer->syntax) { case SERD_NTRIPLES: |