[Mesa-dev] [PATCH 1/2] autoconf: Make the build fail on missing prototypes when possible.

nobled nobled at dreamwidth.org
Tue Jan 24 20:55:27 PST 2012


On Tue, Jan 24, 2012 at 1:09 PM, Eric Anholt <eric at anholt.net> wrote:
> You don't want to continue on when you've used something that is
> probably a typo of a real symbol, or maybe just using the wrong
> signature.
> ---

-Werror=implicit would help cover this from the caller side of things, too.

>  configure.ac |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 18a40fc..74e5fe4 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -176,7 +176,7 @@ esac
>
>  dnl Add flags for gcc and g++
>  if test "x$GCC" = xyes; then
> -    CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99"
> +    CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Werror=missing-prototypes -std=c99"
>
>     # Enable -fvisibility=hidden if using a gcc that supports it
>     save_CFLAGS="$CFLAGS"
> --
> 1.7.7.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list