Reduce the number of build warnings by deleting unused variables.
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
int get_key(FILE * f, clock_t timeout)
{
char buffer[KEY_MAXLEN];
- int nc, i, rv;
+ int nc, rv;
int another;
char ch;
clock_t start;
bool opt_quiet = false;
char initrd_name[256];
char cmdline_buf[256], *cmdline;
- int i;
dprintf("okernel = %s, ocmdline = %s", okernel, ocmdline);
int main(int argc, char **argv)
{
- com32sys_t ireg, oreg;
const void *adv;
size_t count = 0;
char *config_argv[2] = { NULL, NULL };
loadfont(KernelName);
refstr_put(filename);
} else if (looking_at(p, "kbdmap")) {
- com32sys_t reg;
const char *filename;
char *dst = KernelName;
size_t len = FILENAME_MAX - 1;
/* serial setting, bps, flow control */
else if (looking_at(p, "serial")) {
- com32sys_t ireg;
uint16_t port, flow;
uint32_t baud;
// Loads the module into the system
int module_load(struct elf_module *module) {
- int res, i;
+ int res;
Elf32_Sym *main_sym;
Elf32_Ehdr elf_hdr;
module_ctor_t *ctor;
void local_boot(int16_t ax)
{
com32sys_t ireg, oreg;
- unsigned long data;
int i;
vgaclearmode();