svn commit: r321264 - stable/11/sys/boot/common

Ngie Cooper ngie at FreeBSD.org
Thu Jul 20 00:47:51 UTC 2017


Author: ngie
Date: Thu Jul 20 00:47:50 2017
New Revision: 321264
URL: https://svnweb.freebsd.org/changeset/base/321264

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/11/sys/boot/common/part.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/boot/common/part.c
==============================================================================
--- stable/11/sys/boot/common/part.c	Thu Jul 20 00:44:01 2017	(r321263)
+++ stable/11/sys/boot/common/part.c	Thu Jul 20 00:47:50 2017	(r321264)
@@ -664,8 +664,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-stable-11 mailing list