[Xcb] [PATCH 2/8] -pendantic is too pendantic

Josh Triplett josh at joshtriplett.org
Fri Nov 8 07:47:32 PST 2013


On Wed, Nov 06, 2013 at 07:45:39PM -0800, Keith Packard wrote:
> Many system headers have warnings when compiled with this flag.
> 
> Signed-off-by: Keith Packard <keithp at keithp.com>

In theory, GCC should never be warning about things from system headers
unless asked to...

>  configure.ac | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 6c107bc..4a30584 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -128,7 +128,7 @@ xcbincludedir='${includedir}/xcb'
>  AC_SUBST(xcbincludedir)
>  
>  if  test "x$GCC" = xyes ; then
> -    CWARNFLAGS="-Wall -pedantic -Wpointer-arith -Wold-style-definition \
> +    CWARNFLAGS="-Wall -Wpointer-arith -Wold-style-definition \
>  		-Wstrict-prototypes -Wmissing-declarations -Wnested-externs"
>  else
>      AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
> -- 
> 1.8.4.2
> 
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb


More information about the xorg-devel mailing list