Date: Thu, 20 Sep 2012 14:52:51 +0000 (UTC) From: "Cherry G. Mathew" <cherry@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r240747 - projects/amd64_xen_pv/sys/dev/xen/netback Message-ID: <201209201452.q8KEqp9b038200@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cherry Date: Thu Sep 20 14:52:50 2012 New Revision: 240747 URL: http://svn.freebsd.org/changeset/base/240747 Log: Alter file scoped macro semantics to fit usecases, in order to fix build on llvm. An alternate fix would have been an inline private function instead, but given that there are no consumers of the return value of the expression - Occam's Razor was applied. Reported by Bret Ketchum <Bret_Ketchum@DELL.com>. Modified: projects/amd64_xen_pv/sys/dev/xen/netback/netback_unit_tests.c Modified: projects/amd64_xen_pv/sys/dev/xen/netback/netback_unit_tests.c ============================================================================== --- projects/amd64_xen_pv/sys/dev/xen/netback/netback_unit_tests.c Thu Sep 20 14:38:21 2012 (r240746) +++ projects/amd64_xen_pv/sys/dev/xen/netback/netback_unit_tests.c Thu Sep 20 14:52:50 2012 (r240747) @@ -58,8 +58,8 @@ __FBSDID("$FreeBSD$"); #define TOSTRING(x) STRINGIFY(x) /** - * Writes an error message to buffer if cond is false, and returns true - * iff the assertion failed. Note the implied parameters buffer and + * Writes an error message to buffer if cond is false + * Note the implied parameters buffer and * buflen */ #define XNB_ASSERT(cond) ({ \ @@ -71,7 +71,7 @@ __FBSDID("$FreeBSD$"); strlcat(_buffer, ":" TOSTRING(__LINE__) \ " Assertion Error: " #cond "\n", _buflen); \ } \ - ! passed; }) + }) /**
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209201452.q8KEqp9b038200>