From bdc21a0607687f02c70351576c34820caf2bea32 Mon Sep 17 00:00:00 2001 From: Seven Du Date: Sun, 23 Sep 2018 08:59:30 +0800 Subject: [PATCH] FS-11405 #resolve tweak macro to use do while 0 the original one will leave an extra semicolon after } --- src/include/switch_ivr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/switch_ivr.h b/src/include/switch_ivr.h index 1ebd7a0e13..3525ab28ff 100644 --- a/src/include/switch_ivr.h +++ b/src/include/switch_ivr.h @@ -66,11 +66,11 @@ SWITCH_BEGIN_EXTERN_C struct switch_unicast_conninfo { typedef struct switch_unicast_conninfo switch_unicast_conninfo_t; #define SWITCH_IVR_VERIFY_SILENCE_DIVISOR(divisor) \ - { \ + do { \ if ((divisor) <= 0 && (divisor) != -1) { \ divisor = 400; \ } \ - } + } while (0) /** * @defgroup switch_ivr IVR Library