tech-userlevel archive

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

missing-prototypes enabled in bsd.sys.mk



Hello,
When building Lua modules bsd.sys.mk gets included in bsd.lua.mk. In
bsd.sys.mk -Wmissing-prototypes is enabled via CFLAGS. This forces the
declaration of prototypes where it would not be a show stopper if it
wasn't, for example in this case, a Lua module where the function is not
called anywhere else or prior to the implementation.

-Wmissing-prototypes was enabled over 20 years ago in r1.9 of
bsd.sys.mk, is the necessity for enabling this a relic from the
transition from K&R to ANSI-C or is it still a necessary and useful
check to have enabled by default?


Sevan


Home | Main Index | Thread Index | Old Index