[Pkg-voip-commits] [bctoolbox] 03/57: allow missing initializers and fix compilation error

daniel at gnoutcheff.name daniel at gnoutcheff.name
Thu Mar 30 04:31:30 UTC 2017


This is an automated email from the git hooks/post-receive script.

gnoutchd-guest pushed a commit to branch debian/sid
in repository bctoolbox.

commit 7e428aeacbfcf991845a8e4bf0b5e0dd28c4cae3
Author: Simon Morlat <simon.morlat at linphone.org>
Date:   Wed Oct 19 19:42:44 2016 +0200

    allow missing initializers and fix compilation error
---
 CMakeLists.txt | 4 ++--
 configure.ac   | 2 +-
 src/tester.c   | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 58cafb6..aa35e24 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -168,8 +168,8 @@ else()
 		list(APPEND STRICT_OPTIONS_CPP "-Wno-error=unknown-warning-option" "-Qunused-arguments" "-Wno-tautological-compare" "-Wno-unused-function" "-Wno-array-bounds")
 	endif()
 	if(ENABLE_STRICT)
-		list(APPEND STRICT_OPTIONS_CPP "-Werror" "-Wextra" "-Wno-unused-parameter" "-Wno-error=unknown-pragmas" "-Wuninitialized" "-fno-strict-aliasing")
-		list(APPEND STRICT_OPTIONS_C "-Wdeclaration-after-statement" "-Wstrict-prototypes")
+		list(APPEND STRICT_OPTIONS_CPP "-Werror" "-Wextra" "-Wno-unused-parameter" "-Wno-error=unknown-pragmas" "-Wuninitialized" "-Wno-missing-field-initializers" "-fno-strict-aliasing")
+		list(APPEND STRICT_OPTIONS_C "-Werror" "-Wdeclaration-after-statement" "-Wstrict-prototypes")
 	endif()
 endif()
 if(STRICT_OPTIONS_CPP)
diff --git a/configure.ac b/configure.ac
index d250b15..69f96e4 100755
--- a/configure.ac
+++ b/configure.ac
@@ -64,7 +64,7 @@ AC_ARG_ENABLE(strict,
 STRICT_OPTIONS="-Wall"
 
 if test "$strict" = "true" ; then
-	STRICT_OPTIONS="$STRICT_OPTIONS -Werror -Wextra -Wno-unused-parameter"
+	STRICT_OPTIONS="$STRICT_OPTIONS -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers"
 fi
 AC_SUBST(STRICT_OPTIONS)
 
diff --git a/src/tester.c b/src/tester.c
index 47ad33e..ac8df2a 100644
--- a/src/tester.c
+++ b/src/tester.c
@@ -113,7 +113,7 @@ int bc_tester_run_suite(test_suite_t *suite, const char *tag_name) {
 	CU_pSuite pSuite;
 
 	if (tag_name != NULL) {
-		int j;
+		size_t j;
 		int nb_tests_for_tag = 0;
 		for (i = 0; i < suite->nb_tests; i++) {
 			for (j = 0; j < (sizeof(suite->tests[i].tags) / sizeof(suite->tests[i].tags[0])); j++) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/bctoolbox.git



More information about the Pkg-voip-commits mailing list