autotools: add WARN_CFLAGS to all targets
... minus test/ttmtest. The latter is not really hooked up with the actual build. This will give us 66 warnings on a distribution build of which - 12 -Wunused-variable - 11 -Wunused-function - 19 -Wmissing-prototypes and a few -Wswitch-enum, -Wtype-limits etc. Adding the CFLAGS gives some exposure to these so that we can fix them. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>main
parent
794810d62d
commit
4c6b1b1a82
|
@ -82,6 +82,7 @@ libdrm_la_LIBADD = @CLOCK_LIB@
|
|||
|
||||
libdrm_la_CPPFLAGS = -I$(top_srcdir)/include/drm
|
||||
AM_CFLAGS = \
|
||||
$(WARN_CFLAGS) \
|
||||
$(VALGRIND_CFLAGS)
|
||||
|
||||
libdrm_la_SOURCES = $(LIBDRM_FILES)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
NULL:=#
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
AM_CFLAGS = \
|
||||
$(WARN_CFLAGS)\
|
||||
-I $(top_srcdir)/include/drm \
|
||||
-I $(top_srcdir)
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
AM_CFLAGS = \
|
||||
$(WARN_CFLAGS)\
|
||||
-I $(top_srcdir)/include/drm \
|
||||
-I $(top_srcdir)/libkms/ \
|
||||
-I $(top_srcdir)/exynos \
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
AM_CFLAGS = \
|
||||
$(WARN_CFLAGS)\
|
||||
-I$(top_srcdir)/include/drm \
|
||||
-I$(top_srcdir)/libkms/ \
|
||||
-I$(top_srcdir)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
AM_CFLAGS = \
|
||||
$(WARN_CFLAGS)\
|
||||
-I$(top_srcdir)/include/drm \
|
||||
-I$(top_srcdir)
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
AM_CFLAGS = \
|
||||
$(WARN_CFLAGS)\
|
||||
-I$(top_srcdir)/include/drm \
|
||||
-I$(top_srcdir)
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
AM_CFLAGS = \
|
||||
$(WARN_CFLAGS)\
|
||||
-I $(top_srcdir)/include/drm \
|
||||
-I $(top_srcdir)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ AM_CPPFLAGS = \
|
|||
-I$(top_srcdir)/tegra \
|
||||
-I$(top_srcdir)
|
||||
|
||||
AM_CFLAGS = -Wall -Werror
|
||||
AM_CFLAGS = $(WARN_CFLAGS)
|
||||
|
||||
LDADD = \
|
||||
../../tegra/libdrm_tegra.la \
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
AM_CFLAGS = \
|
||||
$(WARN_CFLAGS)\
|
||||
-I$(top_srcdir)/include/drm \
|
||||
-I$(top_srcdir)
|
||||
|
||||
if HAVE_INSTALL_TESTS
|
||||
bin_PROGRAMS = \
|
||||
vbltest
|
||||
|
|
Loading…
Reference in New Issue