Fix build errors and warnings in zoneinfo and virtualmips.
This commit is contained in:
@@ -16,7 +16,7 @@ CFLAGS = -DSIM_PIC32 -DPIC32MX7 -DMAX32
|
||||
#CFLAGS = -DSIM_PIC32 -DPIC32MX7 -DUBW32
|
||||
|
||||
CC = gcc -g
|
||||
CFLAGS += -Wall -MT $@ -MD -MP -MF .deps/$*.dep -I/opt/local/include -I/opt/local/include/libelf
|
||||
CFLAGS += -Wall -Werror -MT $@ -MD -MP -MF .deps/$*.dep -I/opt/local/include -I/opt/local/include/libelf
|
||||
LIBS = -lpthread -lelf
|
||||
|
||||
ifneq ($(wildcard /usr/lib/librt.a),)
|
||||
|
||||
@@ -310,14 +310,14 @@ int fastcall mips_update_irq_flag (cpu_mips_t * cpu)
|
||||
}
|
||||
|
||||
#if SIM_PIC32
|
||||
static void print_arg (val) {
|
||||
static void print_arg (int val) {
|
||||
if (val & 0xff000000)
|
||||
printf ("%08x", val);
|
||||
else
|
||||
printf ("%u", val);
|
||||
}
|
||||
|
||||
static void print_args (narg, arg0, arg1, arg2, arg3, arg4, arg5)
|
||||
static void print_args (int narg, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
|
||||
{
|
||||
print_arg (arg0);
|
||||
if (narg > 1) { printf (", "); print_arg (arg1); }
|
||||
|
||||
@@ -26,7 +26,7 @@ extern cpu_mips_t *current_cpu;
|
||||
/*
|
||||
* Perform an assign/clear/set/invert operation.
|
||||
*/
|
||||
static inline unsigned write_op (a, b, op)
|
||||
static inline unsigned write_op (int a, int b, int op)
|
||||
{
|
||||
switch (op & 0xc) {
|
||||
case 0x0: /* Assign */
|
||||
|
||||
@@ -26,7 +26,7 @@ extern cpu_mips_t *current_cpu;
|
||||
/*
|
||||
* Perform an assign/clear/set/invert operation.
|
||||
*/
|
||||
static inline unsigned write_op (a, b, op)
|
||||
static inline unsigned write_op (int a, int b, int op)
|
||||
{
|
||||
switch (op & 0xc) {
|
||||
case 0x0: /* Assign */
|
||||
|
||||
@@ -26,7 +26,7 @@ extern cpu_mips_t *current_cpu;
|
||||
/*
|
||||
* Perform an assign/clear/set/invert operation.
|
||||
*/
|
||||
static inline unsigned write_op (a, b, op)
|
||||
static inline unsigned write_op (int a, int b, int op)
|
||||
{
|
||||
switch (op & 0xc) {
|
||||
case 0x0: /* Assign */
|
||||
|
||||
@@ -97,7 +97,7 @@ extern cpu_mips_t *current_cpu;
|
||||
/*
|
||||
* Perform an assign/clear/set/invert operation.
|
||||
*/
|
||||
static inline unsigned write_op (a, b, op)
|
||||
static inline unsigned write_op (int a, int b, int op)
|
||||
{
|
||||
switch (op & 0xc) {
|
||||
case 0x0: /* Assign */
|
||||
|
||||
@@ -26,7 +26,7 @@ extern cpu_mips_t *current_cpu;
|
||||
/*
|
||||
* Perform an assign/clear/set/invert operation.
|
||||
*/
|
||||
static inline unsigned write_op (a, b, op)
|
||||
static inline unsigned write_op (int a, int b, int op)
|
||||
{
|
||||
switch (op & 0xc) {
|
||||
case 0x0: /* Assign */
|
||||
|
||||
@@ -26,7 +26,7 @@ extern cpu_mips_t *current_cpu;
|
||||
/*
|
||||
* Perform an assign/clear/set/invert operation.
|
||||
*/
|
||||
static inline unsigned write_op (a, b, op)
|
||||
static inline unsigned write_op (int a, int b, int op)
|
||||
{
|
||||
switch (op & 0xc) {
|
||||
case 0x0: /* Assign */
|
||||
|
||||
@@ -26,7 +26,7 @@ extern cpu_mips_t *current_cpu;
|
||||
/*
|
||||
* Perform an assign/clear/set/invert operation.
|
||||
*/
|
||||
static inline unsigned write_op (a, b, op)
|
||||
static inline unsigned write_op (int a, int b, int op)
|
||||
{
|
||||
switch (op & 0xc) {
|
||||
case 0x0: /* Assign */
|
||||
|
||||
@@ -48,7 +48,7 @@ extern cpu_mips_t *current_cpu;
|
||||
/*
|
||||
* Perform an assign/clear/set/invert operation.
|
||||
*/
|
||||
static inline unsigned write_op (a, b, op)
|
||||
static inline unsigned write_op (int a, int b, int op)
|
||||
{
|
||||
switch (op & 0xc) {
|
||||
case 0x0: /* Assign */
|
||||
|
||||
@@ -44,7 +44,7 @@ static const int timer_scale[8] = {
|
||||
/*
|
||||
* Perform an assign/clear/set/invert operation.
|
||||
*/
|
||||
static inline unsigned write_op (a, b, op)
|
||||
static inline unsigned write_op (int a, int b, int op)
|
||||
{
|
||||
switch (op & 0xc) {
|
||||
case 0x0: /* Assign */
|
||||
|
||||
Reference in New Issue
Block a user