several declarations in uts declare functions with variable number of args even if they are not
In many files in kernel there are function declarations for functions defined in different files but the declarations are incomplete - they have no specified args, so compiler see them as function with variable number of args. That could be source of bugs potentially.
Updated by Rich Lowe about 8 years ago
If you're fixing bugs like this you should:
Edit usr/src/tools/cw/cw.c and remove the forced -Wno-implicit-function-declaration
the kernel is fine, but a lot of other code is missing includes, and thus has the same problems (no type checking of arguments, of arity, of anything).
Just focusing on the bits of code you care most about would help a lot (say, uts/ and lib/, presuming that the ancient code in cmd/ is the primary, shocking, offender).
Updated by Milan Jurik about 8 years ago
I need to do clean up step-by-step here and as I would like to use the latest greatest lint in my CBE, lint reports have priority for me now.
I know illumos cw hides lots of gcc warnings which would be nice to clean up but that is work for few next years, I cannot do all in the first 2 months :-)