summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-07-20 00:48:04 +0000
committerngie <ngie@FreeBSD.org>2017-07-20 00:48:04 +0000
commit24168a06e898832a577802b70626fed7e9e153c7 (patch)
treefb4b4b927d082f3b381f11b722c50bcd412300d8 /sys/boot
parent26c6cd37ceae365b6aa9f3203b932d29ad2be3fb (diff)
downloadFreeBSD-src-24168a06e898832a577802b70626fed7e9e153c7.zip
FreeBSD-src-24168a06e898832a577802b70626fed7e9e153c7.tar.gz
MFC r316102:
Wrap bootcamp DEBUG statement with curly braces This fixes a -Wempty-body warning with gcc 6.3.0 when PART_DEBUG is undefined. Tested with: amd64-gcc-6.3.0 (devel/amd64-xtoolchain-gcc)
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/common/part.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/boot/common/part.c b/sys/boot/common/part.c
index 5e9217e..1955c39 100644
--- a/sys/boot/common/part.c
+++ b/sys/boot/common/part.c
@@ -660,8 +660,9 @@ ptable_open(void *dev, off_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) {
OpenPOWER on IntegriCloud