diff options
author | David Robillard <d@drobilla.net> | 2019-07-21 22:41:38 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-07-21 22:41:38 +0200 |
commit | 94f74fa92e677e28c1ef560f9a8a039f9cf69579 (patch) | |
tree | 4f171fa8ea35c4d4e2514d9be2884feb129153a3 /pugl/pugl_internal.h | |
parent | bc78b748e7b6885fd78675db725bcfa8d755de9c (diff) | |
download | pugl-94f74fa92e677e28c1ef560f9a8a039f9cf69579.tar.gz pugl-94f74fa92e677e28c1ef560f9a8a039f9cf69579.tar.bz2 pugl-94f74fa92e677e28c1ef560f9a8a039f9cf69579.zip |
Fix some warnings
Diffstat (limited to 'pugl/pugl_internal.h')
-rw-r--r-- | pugl/pugl_internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h index fea5959..3da435a 100644 --- a/pugl/pugl_internal.h +++ b/pugl/pugl_internal.h @@ -216,7 +216,7 @@ puglSetEventFunc(PuglView* view, PuglEventFunc eventFunc) static inline uint32_t puglDecodeUTF8(const uint8_t* buf) { -#define FAIL_IF(cond) { if (cond) return 0xFFFD; } +#define FAIL_IF(cond) do { if (cond) return 0xFFFD; } while (0) // http://en.wikipedia.org/wiki/UTF-8 |