Port-mips archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: build playstation2 kernel?



> /x/current/src/sys/arch/playstation2/playstation2/interrupt.c:154:1: error:=
>  no previous prototype for 'setsoft' [-Werror=3Dmissing-prototypes]
>   154 | setsoft(int ipl)
>       | ^~~~~~~
[...]
> I'm not sure why its complaining about "no previous prototype" for
> "setsoft()" or "splset()" as it's parsing the function definitions
> themselves.

They aren't declared static and -Wmissing-prototypes is in effect.
(-Werror=missing-prototypes, actually, based on both the message and it
being an error rather than a warning.)

Catching such things - non-static functions not declared in .h files -
is the whole point of -Wmissing-prototypes.

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse%rodents-montreal.org@localhost
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index