Re: -Werror flag set unconditionally
2012-12-20 03:39:30 Branko Čibej napisał(a):
> I found the following in configure.ac which unconditionally adds a
> -Werror flag:
> dnl Add -Werror=implicit-function-declaration to CFLAGS
> CFLAGS="$CFLAGS_KEEP -Werror=implicit-function-declaration"
> AC_COMPILE_IFELSE([AC_LANG_SOURCE([])], [CFLAGS_KEEP="$CFLAGS"])
> I'm almost sure this should only be done in maintainer-mode?
-Werror != -Werror=implicit-function-declaration
We want to always use -Werror=implicit-function-declaration (if compiler supports it) to ensure that nobody forgets
to include required headers. (Implicit function declarations are always illegal in C++, so this flag is needed only
Arfrever Frehtes Taifersar Arahesis
Received on 2012-12-20 04:32:05 CET
This is an archived mail posted to the Subversion Dev