summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2021-11-14 21:34:57 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2021-11-17 19:30:53 +0100
commit2fa2726d9197fa2da741fa2a9fe1392f5ce15bf8 (patch)
treedd3fa1ef8e4f7ff7be9a47dfa3674e6200857a63 /tests
parent7c926d74b52ad2a76d0997c504b542dd5087834b (diff)
downloadlibgphoto2-2fa2726d9197fa2da741fa2a9fe1392f5ce15bf8.tar.gz
The pedantic compilation flags might ignore some warnings
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index fdeb533be..fd6b6fc04 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -99,6 +99,10 @@ generic_pedantic_cppflags =
generic_pedantic_cppflags += -I$(top_srcdir)/libgphoto2_port
generic_pedantic_cppflags += -I$(top_srcdir)
+generic_pedantic_cflags =
+
+generic_pedantic_cxxflags =
+
if GP_HAVE_PEDANTIC_FLAGS_C90
TESTS += test-pedantic-c90
check_PROGRAMS += test-pedantic-c90
@@ -107,6 +111,7 @@ EXTRA_PROGRAMS += test-pedantic-c90
test_pedantic_c90_SOURCES = test-pedantic-compilation.c
test_pedantic_c90_CPPFLAGS = $(generic_pedantic_cppflags)
test_pedantic_c90_CFLAGS = $(GP_PEDANTIC_CFLAGS_C90)
+test_pedantic_c90_CFLAGS += $(generic_pedantic_cflags)
test_pedantic_c90_LDADD =
test_pedantic_c90_LDFLAGS =
@@ -118,6 +123,7 @@ EXTRA_PROGRAMS += test-pedantic-c99
test_pedantic_c99_SOURCES = test-pedantic-compilation.c
test_pedantic_c99_CPPFLAGS = $(generic_pedantic_cppflags)
test_pedantic_c99_CFLAGS = $(GP_PEDANTIC_CFLAGS_C99)
+test_pedantic_c99_CFLAGS += $(generic_pedantic_cflags)
test_pedantic_c99_LDADD =
test_pedantic_c99_LDFLAGS =
@@ -129,6 +135,7 @@ EXTRA_PROGRAMS += test-pedantic-c11
test_pedantic_c11_SOURCES = test-pedantic-compilation.c
test_pedantic_c11_CPPFLAGS = $(generic_pedantic_cppflags)
test_pedantic_c11_CFLAGS = $(GP_PEDANTIC_CFLAGS_C11)
+test_pedantic_c11_CFLAGS += $(generic_pedantic_cflags)
test_pedantic_c11_LDADD =
test_pedantic_c11_LDFLAGS =
@@ -140,6 +147,7 @@ EXTRA_PROGRAMS += test-pedantic-c2x
test_pedantic_c2x_SOURCES = test-pedantic-compilation.c
test_pedantic_c2x_CPPFLAGS = $(generic_pedantic_cppflags)
test_pedantic_c2x_CFLAGS = $(GP_PEDANTIC_CFLAGS_C2X)
+test_pedantic_c2x_CFLAGS += $(generic_pedantic_cflags)
test_pedantic_c2x_LDADD =
test_pedantic_c2x_LDFLAGS =
@@ -153,6 +161,7 @@ EXTRA_PROGRAMS += test-pedantic-cxx98
test_pedantic_cxx98_SOURCES = test-pedantic-compilation.cxx
test_pedantic_cxx98_CPPFLAGS = $(generic_pedantic_cppflags)
test_pedantic_cxx98_CXXFLAGS = $(GP_PEDANTIC_CXXFLAGS_CXX98)
+test_pedantic_cxx98_CXXFLAGS += $(generic_pedantic_cxxflags)
test_pedantic_cxx98_LDADD =
test_pedantic_cxx98_LDFLAGS =
@@ -166,6 +175,7 @@ EXTRA_PROGRAMS += test-pedantic-cxx11
test_pedantic_cxx11_SOURCES = test-pedantic-compilation.cxx
test_pedantic_cxx11_CPPFLAGS = $(generic_pedantic_cppflags)
test_pedantic_cxx11_CXXFLAGS = $(GP_PEDANTIC_CXXFLAGS_CXX11)
+test_pedantic_cxx11_CXXFLAGS += $(generic_pedantic_cxxflags)
test_pedantic_cxx11_LDADD =
test_pedantic_cxx11_LDFLAGS =
@@ -179,6 +189,7 @@ EXTRA_PROGRAMS += test-pedantic-cxx14
test_pedantic_cxx14_SOURCES = test-pedantic-compilation.cxx
test_pedantic_cxx14_CPPFLAGS = $(generic_pedantic_cppflags)
test_pedantic_cxx14_CXXFLAGS = $(GP_PEDANTIC_CXXFLAGS_CXX14)
+test_pedantic_cxx14_CXXFLAGS += $(generic_pedantic_cxxflags)
test_pedantic_cxx14_LDADD =
test_pedantic_cxx14_LDFLAGS =
@@ -192,6 +203,7 @@ EXTRA_PROGRAMS += test-pedantic-cxx17
test_pedantic_cxx17_SOURCES = test-pedantic-compilation.cxx
test_pedantic_cxx17_CPPFLAGS = $(generic_pedantic_cppflags)
test_pedantic_cxx17_CXXFLAGS = $(GP_PEDANTIC_CXXFLAGS_CXX17)
+test_pedantic_cxx17_CXXFLAGS += $(generic_pedantic_cxxflags)
test_pedantic_cxx17_LDADD =
test_pedantic_cxx17_LDFLAGS =
@@ -205,6 +217,7 @@ EXTRA_PROGRAMS += test-pedantic-cxx20
test_pedantic_cxx20_SOURCES = test-pedantic-compilation.cxx
test_pedantic_cxx20_CPPFLAGS = $(generic_pedantic_cppflags)
test_pedantic_cxx20_CXXFLAGS = $(GP_PEDANTIC_CXXFLAGS_CXX20)
+test_pedantic_cxx20_CXXFLAGS += $(generic_pedantic_cxxflags)
test_pedantic_cxx20_LDADD =
test_pedantic_cxx20_LDFLAGS =