Author: kan
Date: Fri Apr  7 22:58:34 2017
New Revision: 316628
URL: https://svnweb.freebsd.org/changeset/base/316628

Log:
  Silence GCC warning by initializing the local variable.
  
  GCC 6.3 is unable to trace all code paths that lead to
  this variable being left uninitialized and correlate that
  to function return values.

Modified:
  head/sys/boot/efi/boot1/boot1.c

Modified: head/sys/boot/efi/boot1/boot1.c
==============================================================================
--- head/sys/boot/efi/boot1/boot1.c     Fri Apr  7 22:58:31 2017        
(r316627)
+++ head/sys/boot/efi/boot1/boot1.c     Fri Apr  7 22:58:34 2017        
(r316628)
@@ -529,6 +529,7 @@ probe_handle_status(EFI_HANDLE h, EFI_DE
        EFI_STATUS status;
        BOOLEAN preferred;
 
+       preferred = FALSE;
        status = probe_handle(h, imgpath, &preferred);
        
        DPRINTF("probe: ");
_______________________________________________
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