From: Russell Bryant Date: Tue, 5 Apr 2005 17:08:05 +0000 (+0000) Subject: don't define a functioning returning an int inside of a do{...}while(0) (bug #3865) X-Git-Tag: 1.0.11.1~155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34bc1ac24102ba4e73d481fcd23b4e1f1c74bf95;p=thirdparty%2Fasterisk.git don't define a functioning returning an int inside of a do{...}while(0) (bug #3865) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5410 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h index 2c0a91c13b..0000f9f838 100755 --- a/include/asterisk/frame.h +++ b/include/asterisk/frame.h @@ -389,13 +389,13 @@ extern void ast_smoother_free(struct ast_smoother *s); extern void ast_smoother_reset(struct ast_smoother *s, int bytes); extern int __ast_smoother_feed(struct ast_smoother *s, struct ast_frame *f, int swap); extern struct ast_frame *ast_smoother_read(struct ast_smoother *s); -#define ast_smoother_feed(s,f) do { __ast_smoother_feed(s, f, 0); } while(0) +#define ast_smoother_feed(s,f) __ast_smoother_feed(s, f, 0) #if __BYTE_ORDER == __LITTLE_ENDIAN -#define ast_smoother_feed_be(s,f) do { __ast_smoother_feed(s, f, 1); } while(0) -#define ast_smoother_feed_le(s,f) do { __ast_smoother_feed(s, f, 0); } while(0) +#define ast_smoother_feed_be(s,f) __ast_smoother_feed(s, f, 1) +#define ast_smoother_feed_le(s,f) __ast_smoother_feed(s, f, 0) #else -#define ast_smoother_feed_be(s,f) do { __ast_smoother_feed(s, f, 0); } while(0) -#define ast_smoother_feed_le(s,f) do { __ast_smoother_feed(s, f, 1); } while(0) +#define ast_smoother_feed_be(s,f) __ast_smoother_feed(s, f, 0) +#define ast_smoother_feed_le(s,f) __ast_smoother_feed(s, f, 1) #endif extern void ast_frame_dump(char *name, struct ast_frame *f, char *prefix);