From f13f3bfaa37b7115f8d238c29c5c719fe30ce376 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Tue, 28 Mar 2017 20:22:44 +0000 Subject: [PATCH] Wrap bootcamp DEBUG statement with curly braces This fixes a -Wempty-body warning with gcc 6.3.0 when PART_DEBUG is undefined. MFC after: 3 days Reported by: Jenkins (FreeBSD-head-amd64-gcc job) Tested with: amd64-gcc-6.3.0 (devel/amd64-xtoolchain-gcc) Sponsored by: Dell EMC Isilon --- sys/boot/common/part.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/boot/common/part.c b/sys/boot/common/part.c index fac599e64e3..45ada9110f7 100644 --- a/sys/boot/common/part.c +++ b/sys/boot/common/part.c @@ -684,8 +684,9 @@ ptable_open(void *dev, uint64_t sectors, uint16_t sectorsize, if (dp[1].dp_typ != DOSPTYP_HFS) { table->type = PTABLE_NONE; DEBUG("Incorrect PMBR, ignore it"); - } else + } else { DEBUG("Bootcamp detected"); + } } #ifdef LOADER_GPT_SUPPORT if (table->type == PTABLE_GPT) {