Date: Fri, 7 Apr 2017 22:58:35 +0000 (UTC) From: Alexander Kabaev <kan@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r316628 - head/sys/boot/efi/boot1 Message-ID: <201704072258.v37MwZwS005064@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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: ");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704072258.v37MwZwS005064>