aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-06 10:34:55 +0200
committerDavid Robillard <d@drobilla.net>2020-07-06 10:34:55 +0200
commit9f17e7498c9527c85e292914f7e874c045dccc75 (patch)
tree6049662546a912eed501b54642b400fb73ea319d /src/n3.c
parented4c28d84c9411e46a0a53efc97c4966ef7ad3d7 (diff)
downloadserd-9f17e7498c9527c85e292914f7e874c045dccc75.tar.gz
serd-9f17e7498c9527c85e292914f7e874c045dccc75.tar.bz2
serd-9f17e7498c9527c85e292914f7e874c045dccc75.zip
Fix spurious semicolon warnings
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/n3.c b/src/n3.c
index 0098e5a1..f8c4ccca 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -27,8 +27,8 @@
#include <stdlib.h>
#include <string.h>
-#define TRY_THROW(exp) if (!(exp)) goto except;
-#define TRY_RET(exp) if (!(exp)) return 0;
+#define TRY_THROW(exp) do { if (!(exp)) goto except; } while (0)
+#define TRY_RET(exp) do { if (!(exp)) return 0; } while (0)
static inline bool
fancy_syntax(const SerdReader* reader)