Ignore:
Timestamp:
Jun 21, 2017, 8:53:24 AM (7 years ago)
Author:
max@…
Message:

Silence a few gcc warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/hal_trap.c

    r29 r31  
    4747int     trap_types = __arraycount(trap_type);
    4848
    49 void x86_printf(char *msg); // XXX
     49void x86_printf(char *s, ...);
    5050
    5151/*
     
    5656{
    5757        uint64_t trapno = tf->tf_trapno;
    58         char *buf;
     58        const char *buf;
    5959
    6060        if (trapno < trap_types) {
     
    6666        x86_printf("\n");
    6767        x86_printf("****** FAULT OCCURRED ******\n");
    68         x86_printf(buf);
     68        x86_printf((char *)buf);
    6969        x86_printf("\n");
    7070        x86_printf("****** FAULT OCCURRED ******\n");
Note: See TracChangeset for help on using the changeset viewer.