From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 30 17:29:41 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 1E1141065673; Sun, 30 Jan 2011 17:29:41 +0000 (UTC) Date: Sun, 30 Jan 2011 17:29:41 +0000 From: Alexander Best To: freebsd-hackers@freebsd.org Message-ID: <20110130172941.GA10701@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: empty function macros X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jan 2011 17:29:41 -0000 hi there, i noticed freebsd has a few of the following macros: #define FUNC(sb) when you do something like if (cond) FUNC(i) the compiler complains about an if statement with an empty body. any sensible way of dealing with this issue? i saw some reiserfs code which does the following to silence compilers: #define FUNC(sb) do { } while (0) cheers. alex -- a13x