summaryrefslogtreecommitdiffstats
path: root/lldb/unittests/Utility/TimerTest.cpp
diff options
context:
space:
mode:
authorAntonio Afonso <antonio.afonso@gmail.com>2019-05-30 15:38:05 +0000
committerAntonio Afonso <antonio.afonso@gmail.com>2019-05-30 15:38:05 +0000
commit7316670ef0a6666357bee8ea62a0eec38cdd7f97 (patch)
tree3e75ae293ba60d53c57456615299c60ebb523e90 /lldb/unittests/Utility/TimerTest.cpp
parentd0f34fd19850c79f8741301c3bfe0312ca24324c (diff)
downloadbcm5719-llvm-7316670ef0a6666357bee8ea62a0eec38cdd7f97.tar.gz
bcm5719-llvm-7316670ef0a6666357bee8ea62a0eec38cdd7f97.zip
Remove length modifier when using assignment suppression in TimerTest
Summary: This is useless and it's giving warnings in the build bots: /home/motus/netbsd8/netbsd8/llvm/tools/lldb/unittests/Utility/TimerTest.cpp:67:43: warning: use of assignment suppression and length modifier together in gnu_scanf format [-Wformat=] Reviewers: xiaobai Subscribers: krytarowski, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D62626 llvm-svn: 362107
Diffstat (limited to 'lldb/unittests/Utility/TimerTest.cpp')
-rw-r--r--lldb/unittests/Utility/TimerTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/unittests/Utility/TimerTest.cpp b/lldb/unittests/Utility/TimerTest.cpp
index 53d0ff12d89..9e3dc8a0391 100644
--- a/lldb/unittests/Utility/TimerTest.cpp
+++ b/lldb/unittests/Utility/TimerTest.cpp
@@ -62,7 +62,7 @@ TEST(TimerTest, CategoryTimes2) {
Timer::DumpCategoryTimes(&ss);
double seconds1, seconds2;
ASSERT_EQ(2, sscanf(ss.GetData(),
- "%lf sec (total: %*lfs; child: %*lfs; count: %*d) for "
+ "%lf sec (total: %*fs; child: %*fs; count: %*d) for "
"CAT1%*[\n ]%lf sec for CAT2",
&seconds1, &seconds2))
<< "String: " << ss.GetData();
@@ -98,7 +98,7 @@ TEST(TimerTest, CategoryTimesStats) {
ASSERT_EQ(
6, sscanf(ss.GetData(),
"%lf sec (total: %lfs; child: %lfs; count: %d) for CAT1%*[\n ]"
- "%lf sec (total: %*lfs; child: %*lfs; count: %d) for CAT2",
+ "%lf sec (total: %*fs; child: %*fs; count: %d) for CAT2",
&seconds1, &total1, &child1, &count1, &seconds2, &count2))
<< "String: " << ss.GetData();
EXPECT_NEAR(total1 - child1, seconds1, 0.002);
OpenPOWER on IntegriCloud