On 20.12.2012 05:08, Arfrever Frehtes Taifersar Arahesis wrote: > 2012-12-20 04:41:56 Branko Čibej napisał(a): >> We want to always use -Werror=implicit-function-declaration (if compiler >> supports it) >> to ensure that nobody forgets to include required headers. >> I'm not convinced. We add -Wmissing-prototypes in maintainer-mode. Why >> would we act differently in this case? > -Wmissing-prototypes and -Werror=missing-prototypes do NOT detect calls to > undeclared functions in C.
That wasn't my point. My point is that since we add -Wmissing-prototypes (and other, more interesting warnings) only in maintainer mode, why then do we set Wimplicit-function-declaration unconditionally? (And really, why not just -Werror=implicit while we're at it). -- Brane -- Branko Čibej Director of Subversion | WANdisco | www.wandisco.com