tech-userlevel archive

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

Re: missing-prototypes enabled in bsd.sys.mk



On 27.05.2018 19:40, Sevan Janiyan wrote:
> 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
> 

It at least helps to keep a consistent style, regardless of being a
compliant ISO C code or not.

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index