Author: ngie
Date: Tue Mar 28 20:22:44 2017
New Revision: 316102
URL: https://svnweb.freebsd.org/changeset/base/316102

Log:
  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

Modified:
  head/sys/boot/common/part.c

Modified: head/sys/boot/common/part.c
==============================================================================
--- head/sys/boot/common/part.c Tue Mar 28 19:01:01 2017        (r316101)
+++ head/sys/boot/common/part.c Tue Mar 28 20:22:44 2017        (r316102)
@@ -684,8 +684,9 @@ ptable_open(void *dev, uint64_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) {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to