diff options
author | Olly Betts <olly@survex.com> | 2022-02-11 08:56:16 +1300 |
---|---|---|
committer | Olly Betts <ojwbetts@gmail.com> | 2022-02-11 18:39:08 +1300 |
commit | 31af3ce9bf08022a236b7140da33fa721102823d (patch) | |
tree | 50bf863318d52f1fefca01743c160c2552bbd063 /Lib/d | |
parent | b624d17f3f42da37ee601945d795dca392e01f84 (diff) | |
download | swig-31af3ce9bf08022a236b7140da33fa721102823d.tar.gz |
Avoid -Wempty-body warnings from SWIG_contract_assert
Diffstat (limited to 'Lib/d')
-rw-r--r-- | Lib/d/dhead.swg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/d/dhead.swg b/Lib/d/dhead.swg index 50e9c2e87..1ef1e4164 100644 --- a/Lib/d/dhead.swg +++ b/Lib/d/dhead.swg @@ -12,7 +12,7 @@ #include <stdio.h> /* Contract support. */ -#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_DSetPendingException(SWIG_DException, msg); return nullreturn; } else +#define SWIG_contract_assert(nullreturn, expr, msg) do { if (!(expr)) {SWIG_DSetPendingException(SWIG_DException, msg); return nullreturn; } } while (0) %} |