intel: Suppress some extremely noisy warnings

Warning about redundant declarations within the xorg headers hides
genuine warnings in our own code - disable them until the headers are
cleaned up.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-07-29 23:49:08 +01:00
parent d7465ece29
commit cf7d36455f
5 changed files with 15 additions and 2 deletions

View File

@ -43,6 +43,11 @@ m4_ifndef([XORG_MACROS_VERSION],
XORG_MACROS_VERSION(1.8)
XORG_DEFAULT_OPTIONS
# And disable a few very noisy warnings
XORG_TESTSET_CFLAG([NOWARNFLAGS], [-Wno-cast-qual])
XORG_TESTSET_CFLAG([NOWARNFLAGS], [-Wno-redundant-decls])
AC_SUBST(NOWARNFLAGS)
# Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules
m4_ifndef([XORG_DRIVER_CHECK_EXT],
[m4_fatal([must install xorg-server macros before running autoconf/autogen.

View File

@ -26,7 +26,13 @@ SUBDIRS = render_program legacy
# _ladir passes a dummy rpath to libtool so the thing will actually link
# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
AM_CFLAGS = @CWARNFLAGS@ @XORG_CFLAGS@ @DRM_CFLAGS@ @PCIACCESS_CFLAGS@
AM_CFLAGS = \
@CWARNFLAGS@ \
@XORG_CFLAGS@ \
@DRM_CFLAGS@ \
@PCIACCESS_CFLAGS@ \
@NOWARNFLAGS@ \
$(NULL)
intel_drv_la_LTLIBRARIES = intel_drv.la
intel_drv_la_LDFLAGS = -module -avoid-version

View File

@ -27,6 +27,7 @@ AM_CFLAGS = \
@XORG_CFLAGS@ \
@UDEV_CFLAGS@ \
@DRM_CFLAGS@ \
@NOWARNFLAGS@
$(NULL)
if VALGRIND

View File

@ -29,6 +29,7 @@ AM_CFLAGS = \
@XORG_CFLAGS@ \
@UDEV_CFLAGS@ \
@DRM_CFLAGS@ \
@NOWARNFLAGS@ \
$(NULL)
if DEBUG

View File

@ -1,6 +1,6 @@
noinst_LTLIBRARIES = libfb.la
libfb_la_CFLAGS = @CWARNFLAGS@ @XORG_CFLAGS@
libfb_la_CFLAGS = @CWARNFLAGS@ @XORG_CFLAGS@ @NOWARNFLAGS@
libfb_la_LIBADD = $(PIXMAN_LIBS)
libfb_la_SOURCES = \