Fix build errors and warnings in zoneinfo and virtualmips.
This commit is contained in:
1
src/cmd/yacc/.gitignore
vendored
Normal file
1
src/cmd/yacc/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
yacc
|
||||
@@ -16,7 +16,7 @@
|
||||
#endif /* !MAL */
|
||||
|
||||
char *
|
||||
imalloc(n)
|
||||
imalloc(int n)
|
||||
{
|
||||
#ifdef MAL
|
||||
register char * result;
|
||||
@@ -33,7 +33,7 @@ imalloc(n)
|
||||
}
|
||||
|
||||
char *
|
||||
icalloc(nelem, elsize)
|
||||
icalloc(int nelem, int elsize)
|
||||
{
|
||||
if (nelem == 0 || elsize == 0)
|
||||
nelem = elsize = 1;
|
||||
@@ -41,8 +41,7 @@ icalloc(nelem, elsize)
|
||||
}
|
||||
|
||||
char *
|
||||
irealloc(pointer, size)
|
||||
char * pointer;
|
||||
irealloc(char *pointer, int size)
|
||||
{
|
||||
if (NULLMAL(pointer))
|
||||
return imalloc(size);
|
||||
|
||||
@@ -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