From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 8EB342A9 for ; Wed, 17 Dec 2014 18:08:34 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 17 Dec 2014 09:06:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,595,1413270000"; d="scan'208";a="639103649" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga001.fm.intel.com with ESMTP; 17 Dec 2014 09:06:54 -0800 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id sBHH6rYm026433; Wed, 17 Dec 2014 17:06:53 GMT Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id sBHH6rHK019066; Wed, 17 Dec 2014 17:06:53 GMT Received: (from bricha3@localhost) by sivswdev01.ir.intel.com with id sBHH6rsH019062; Wed, 17 Dec 2014 17:06:53 GMT From: Bruce Richardson To: dev@dpdk.org Date: Wed, 17 Dec 2014 17:06:53 +0000 Message-Id: <1418836013-19030-1-git-send-email-bruce.richardson@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] test: fix macro by adding in missing "do" in do-while X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2014 17:08:35 -0000 One of the test assertion macros was missing the "do" part of the do-while. This issue was picked up by clang reporting an empty while loop body for the closing while of the do-while pair. Signed-off-by: Bruce Richardson --- app/test/test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test.h b/app/test/test.h index 72e67b9..896f7db 100644 --- a/app/test/test.h +++ b/app/test/test.h @@ -44,7 +44,7 @@ } \ } while (0) -#define TEST_ASSERT_EQUAL(a, b, msg, ...) { \ +#define TEST_ASSERT_EQUAL(a, b, msg, ...) do { \ if (!(a == b)) { \ printf("TestCase %s() line %d failed: " \ msg "\n", __func__, __LINE__, ##__VA_ARGS__); \ -- 2.1.0