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:
parent
d7465ece29
commit
cf7d36455f
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ AM_CFLAGS = \
|
|||
@XORG_CFLAGS@ \
|
||||
@UDEV_CFLAGS@ \
|
||||
@DRM_CFLAGS@ \
|
||||
@NOWARNFLAGS@
|
||||
$(NULL)
|
||||
|
||||
if VALGRIND
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ AM_CFLAGS = \
|
|||
@XORG_CFLAGS@ \
|
||||
@UDEV_CFLAGS@ \
|
||||
@DRM_CFLAGS@ \
|
||||
@NOWARNFLAGS@ \
|
||||
$(NULL)
|
||||
|
||||
if DEBUG
|
||||
|
|
|
|||
|
|
@ -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 = \
|
||||
|
|
|
|||
Loading…
Reference in New Issue