Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Unified Diff: testing/coverage_util_ios.cc

Issue 2585293003: Clean up in iOS code coverage code. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/test/test_support_ios.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/coverage_util_ios.cc
diff --git a/testing/coverage_util_ios.cc b/testing/coverage_util_ios.cc
index 15ac1b4a0a89a99b700d6c2e24624db753805602..d888a208ce150be8e422e12025ce7e18d6cbe15f 100644
--- a/testing/coverage_util_ios.cc
+++ b/testing/coverage_util_ios.cc
@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-extern "C" void __gcov_flush();
+extern "C" void __gcov_flush(void);
namespace coverage_util {
void FlushCoverageDataIfNecessary() {
-#if defined(ENABLE_TEST_CODE_COVERAGE)
+#if !defined(NDEBUG) && defined(ENABLE_TEST_CODE_COVERAGE)
__gcov_flush();
#endif
}
« no previous file with comments | « base/test/test_support_ios.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698