diff options
author | Emil Velikov | 2015-02-23 06:52:47 -0600 |
---|---|---|
committer | Emil Velikov | 2015-02-27 09:51:24 -0600 |
commit | 4c6b1b1a825a01cb64451306bbebd61927442bb0 (patch) | |
tree | e41eb6c3a5c07e52e4173df61cd83b586b578be9 | |
parent | 794810d62d49c05a9b06c8570a6b668b4bb0179d (diff) | |
download | external-libgbm-4c6b1b1a825a01cb64451306bbebd61927442bb0.tar.gz external-libgbm-4c6b1b1a825a01cb64451306bbebd61927442bb0.tar.xz external-libgbm-4c6b1b1a825a01cb64451306bbebd61927442bb0.zip |
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>
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | tests/Makefile.am | 3 | ||||
-rw-r--r-- | tests/exynos/Makefile.am | 1 | ||||
-rw-r--r-- | tests/kmstest/Makefile.am | 1 | ||||
-rw-r--r-- | tests/modeprint/Makefile.am | 1 | ||||
-rw-r--r-- | tests/proptest/Makefile.am | 1 | ||||
-rw-r--r-- | tests/radeon/Makefile.am | 1 | ||||
-rw-r--r-- | tests/tegra/Makefile.am | 2 | ||||
-rw-r--r-- | tests/vbltest/Makefile.am | 2 |
9 files changed, 11 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 062feb42..9514cc59 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -82,6 +82,7 @@ libdrm_la_LIBADD = @CLOCK_LIB@ | |||
82 | 82 | ||
83 | libdrm_la_CPPFLAGS = -I$(top_srcdir)/include/drm | 83 | libdrm_la_CPPFLAGS = -I$(top_srcdir)/include/drm |
84 | AM_CFLAGS = \ | 84 | AM_CFLAGS = \ |
85 | $(WARN_CFLAGS) \ | ||
85 | $(VALGRIND_CFLAGS) | 86 | $(VALGRIND_CFLAGS) |
86 | 87 | ||
87 | libdrm_la_SOURCES = $(LIBDRM_FILES) | 88 | libdrm_la_SOURCES = $(LIBDRM_FILES) |
diff --git a/tests/Makefile.am b/tests/Makefile.am index 37b8d3a1..f989d8e4 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am | |||
@@ -1,6 +1,7 @@ | |||
1 | NULL:=# | 1 | NULL:=# |
2 | 2 | ||
3 | AM_CPPFLAGS = \ | 3 | AM_CFLAGS = \ |
4 | $(WARN_CFLAGS)\ | ||
4 | -I $(top_srcdir)/include/drm \ | 5 | -I $(top_srcdir)/include/drm \ |
5 | -I $(top_srcdir) | 6 | -I $(top_srcdir) |
6 | 7 | ||
diff --git a/tests/exynos/Makefile.am b/tests/exynos/Makefile.am index 92de4e4b..b21d0169 100644 --- a/tests/exynos/Makefile.am +++ b/tests/exynos/Makefile.am | |||
@@ -1,4 +1,5 @@ | |||
1 | AM_CFLAGS = \ | 1 | AM_CFLAGS = \ |
2 | $(WARN_CFLAGS)\ | ||
2 | -I $(top_srcdir)/include/drm \ | 3 | -I $(top_srcdir)/include/drm \ |
3 | -I $(top_srcdir)/libkms/ \ | 4 | -I $(top_srcdir)/libkms/ \ |
4 | -I $(top_srcdir)/exynos \ | 5 | -I $(top_srcdir)/exynos \ |
diff --git a/tests/kmstest/Makefile.am b/tests/kmstest/Makefile.am index 7903a267..fd21e612 100644 --- a/tests/kmstest/Makefile.am +++ b/tests/kmstest/Makefile.am | |||
@@ -1,4 +1,5 @@ | |||
1 | AM_CFLAGS = \ | 1 | AM_CFLAGS = \ |
2 | $(WARN_CFLAGS)\ | ||
2 | -I$(top_srcdir)/include/drm \ | 3 | -I$(top_srcdir)/include/drm \ |
3 | -I$(top_srcdir)/libkms/ \ | 4 | -I$(top_srcdir)/libkms/ \ |
4 | -I$(top_srcdir) | 5 | -I$(top_srcdir) |
diff --git a/tests/modeprint/Makefile.am b/tests/modeprint/Makefile.am index 6420ef33..895805fd 100644 --- a/tests/modeprint/Makefile.am +++ b/tests/modeprint/Makefile.am | |||
@@ -1,4 +1,5 @@ | |||
1 | AM_CFLAGS = \ | 1 | AM_CFLAGS = \ |
2 | $(WARN_CFLAGS)\ | ||
2 | -I$(top_srcdir)/include/drm \ | 3 | -I$(top_srcdir)/include/drm \ |
3 | -I$(top_srcdir) | 4 | -I$(top_srcdir) |
4 | 5 | ||
diff --git a/tests/proptest/Makefile.am b/tests/proptest/Makefile.am index f81a3c00..48a84c1e 100644 --- a/tests/proptest/Makefile.am +++ b/tests/proptest/Makefile.am | |||
@@ -1,4 +1,5 @@ | |||
1 | AM_CFLAGS = \ | 1 | AM_CFLAGS = \ |
2 | $(WARN_CFLAGS)\ | ||
2 | -I$(top_srcdir)/include/drm \ | 3 | -I$(top_srcdir)/include/drm \ |
3 | -I$(top_srcdir) | 4 | -I$(top_srcdir) |
4 | 5 | ||
diff --git a/tests/radeon/Makefile.am b/tests/radeon/Makefile.am index 1775669e..d18620da 100644 --- a/tests/radeon/Makefile.am +++ b/tests/radeon/Makefile.am | |||
@@ -1,4 +1,5 @@ | |||
1 | AM_CFLAGS = \ | 1 | AM_CFLAGS = \ |
2 | $(WARN_CFLAGS)\ | ||
2 | -I $(top_srcdir)/include/drm \ | 3 | -I $(top_srcdir)/include/drm \ |
3 | -I $(top_srcdir) | 4 | -I $(top_srcdir) |
4 | 5 | ||
diff --git a/tests/tegra/Makefile.am b/tests/tegra/Makefile.am index ca63d92f..8e625c8f 100644 --- a/tests/tegra/Makefile.am +++ b/tests/tegra/Makefile.am | |||
@@ -3,7 +3,7 @@ AM_CPPFLAGS = \ | |||
3 | -I$(top_srcdir)/tegra \ | 3 | -I$(top_srcdir)/tegra \ |
4 | -I$(top_srcdir) | 4 | -I$(top_srcdir) |
5 | 5 | ||
6 | AM_CFLAGS = -Wall -Werror | 6 | AM_CFLAGS = $(WARN_CFLAGS) |
7 | 7 | ||
8 | LDADD = \ | 8 | LDADD = \ |
9 | ../../tegra/libdrm_tegra.la \ | 9 | ../../tegra/libdrm_tegra.la \ |
diff --git a/tests/vbltest/Makefile.am b/tests/vbltest/Makefile.am index 34a35e7d..4d87887a 100644 --- a/tests/vbltest/Makefile.am +++ b/tests/vbltest/Makefile.am | |||
@@ -1,6 +1,8 @@ | |||
1 | AM_CFLAGS = \ | 1 | AM_CFLAGS = \ |
2 | $(WARN_CFLAGS)\ | ||
2 | -I$(top_srcdir)/include/drm \ | 3 | -I$(top_srcdir)/include/drm \ |
3 | -I$(top_srcdir) | 4 | -I$(top_srcdir) |
5 | |||
4 | if HAVE_INSTALL_TESTS | 6 | if HAVE_INSTALL_TESTS |
5 | bin_PROGRAMS = \ | 7 | bin_PROGRAMS = \ |
6 | vbltest | 8 | vbltest |