projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't declare a variable for exceptions we discard
[folly.git]
/
folly
/
test
/
StringTest.cpp
diff --git
a/folly/test/StringTest.cpp
b/folly/test/StringTest.cpp
index 415c6c3df05051e28b051f5fb38102526db7bb3e..2341c4891a1949b37816b46f2ef6af40d342d2a4 100644
(file)
--- a/
folly/test/StringTest.cpp
+++ b/
folly/test/StringTest.cpp
@@
-437,7
+437,7
@@
TEST(PrettyToDouble, Basic) {
try{
recoveredX = prettyToDouble(prettyPrint(x, formatType, addSpace),
formatType);
- } catch (std::range_error
&ex)
{
+ } catch (std::range_error
&)
{
EXPECT_TRUE(false);
}
double relativeError = (x - recoveredX) / x;