diff --git a/sys/boot/ofw/libofw/elf_freebsd.c b/sys/boot/ofw/libofw/elf_freebsd.c index 624e9fae1aab..50fd8a66c58a 100644 --- a/sys/boot/ofw/libofw/elf_freebsd.c +++ b/sys/boot/ofw/libofw/elf_freebsd.c @@ -47,7 +47,6 @@ __elfN(ofw_loadfile)(char *filename, u_int64_t dest, struct preloaded_file **result) { int r; - void *addr; r = __elfN(loadfile)(filename, dest, result); if (r != 0) diff --git a/sys/boot/ofw/libofw/ofw_console.c b/sys/boot/ofw/libofw/ofw_console.c index 67333ff106fa..6cb8b03e565d 100644 --- a/sys/boot/ofw/libofw/ofw_console.c +++ b/sys/boot/ofw/libofw/ofw_console.c @@ -112,7 +112,6 @@ int ofw_cons_poll() { unsigned char ch; - int l; if (saved_char != -1) return 1; diff --git a/sys/boot/ofw/libofw/ofw_memory.c b/sys/boot/ofw/libofw/ofw_memory.c index 90e98af89bc2..ebf01affaada 100644 --- a/sys/boot/ofw/libofw/ofw_memory.c +++ b/sys/boot/ofw/libofw/ofw_memory.c @@ -120,7 +120,6 @@ ofw_alloc_heap(unsigned int size) { phandle_t memoryp; struct ofw_reg available; - void *base; memoryp = OF_instance_to_package(memory); OF_getprop(memoryp, "available", &available, sizeof(available)); diff --git a/sys/boot/ofw/libofw/openfirm.c b/sys/boot/ofw/libofw/openfirm.c index 678b2cf8e7ab..cfb9d1fa877e 100644 --- a/sys/boot/ofw/libofw/openfirm.c +++ b/sys/boot/ofw/libofw/openfirm.c @@ -66,9 +66,6 @@ __FBSDID("$FreeBSD$"); int (*openfirmware)(void *); -static ihandle_t stdin; -static ihandle_t stdout; - ihandle_t mmu; ihandle_t memory; @@ -396,7 +393,6 @@ OF_canon(const char *device, char *buf, int len) phandle_t OF_finddevice(const char *device) { - int i; static struct { cell_t name; cell_t nargs;