summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386
diff options
context:
space:
mode:
authorsmh <smh@FreeBSD.org>2016-01-12 02:17:39 +0000
committersmh <smh@FreeBSD.org>2016-01-12 02:17:39 +0000
commit5bfbb8e2e501c2ed4209fb168e9878e598acc192 (patch)
tree4520281a4158d809c8e552821a3d2ed21e225359 /sys/boot/i386
parent0517d6cfae2a854c90ccf67ec23cfa18945a67ac (diff)
downloadFreeBSD-src-5bfbb8e2e501c2ed4209fb168e9878e598acc192.zip
FreeBSD-src-5bfbb8e2e501c2ed4209fb168e9878e598acc192.tar.gz
Enable warnings in EFI boot code
Set WARNS if not set for EFI boot code and fix the issues highlighted by setting it. Most components are set to WARNS level 6 with few being left at lower levels due to the amount of changes needed to fix at higher levels. Error types fixed: * Missing / invalid casts * Missing inner structs * Unused vars * Missing static for internal only funcs * Missing prototypes * Alignment changes * Use of uninitialised vars * Unknown pragma (intrinsic) * Missing types etc due to missing includes * printf formatting types Reviewed by: emaste (in part) MFC after: 2 weeks X-MFC-With: r293268 Sponsored by: Multiplay Differential Revision: https://reviews.freebsd.org/D4839
Diffstat (limited to 'sys/boot/i386')
-rw-r--r--sys/boot/i386/libi386/smbios.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/i386/libi386/smbios.c b/sys/boot/i386/libi386/smbios.c
index 6e4fb84..7a7ce4b 100644
--- a/sys/boot/i386/libi386/smbios.c
+++ b/sys/boot/i386/libi386/smbios.c
@@ -332,7 +332,7 @@ static caddr_t
smbios_find_struct(int type)
{
caddr_t dmi;
- int i;
+ size_t i;
if (smbios.addr == NULL)
return (NULL);
@@ -402,7 +402,7 @@ smbios_detect(const caddr_t addr)
{
char buf[16];
caddr_t dmi;
- int i;
+ size_t i;
smbios_probe(addr);
if (smbios.addr == NULL)
OpenPOWER on IntegriCloud