svn commit: r321265 - stable/10/sys/boot/common
Ngie Cooper
ngie at FreeBSD.org
Thu Jul 20 00:48:05 UTC 2017
Author: ngie
Date: Thu Jul 20 00:48:04 2017
New Revision: 321265
URL: https://svnweb.freebsd.org/changeset/base/321265
Log:
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)
Modified:
stable/10/sys/boot/common/part.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/boot/common/part.c
==============================================================================
--- stable/10/sys/boot/common/part.c Thu Jul 20 00:47:50 2017 (r321264)
+++ stable/10/sys/boot/common/part.c Thu Jul 20 00:48:04 2017 (r321265)
@@ -660,8 +660,9 @@ ptable_open(void *dev, off_t sectors, uint16_t sectors
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) {
More information about the svn-src-all
mailing list