Skip to content

Commit 6868405

Browse files
committed
Fix clang error
1 parent a814570 commit 6868405

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/literals.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ int main()
1717
{
1818
using namespace boost::decimal;
1919

20-
const auto pi_32 {"3.141592653589793238"_DF};
21-
const auto pi_64 {"3.141592653589793238"_DD};
20+
BOOST_DECIMAL_ATTRIBUTE_UNUSED const auto pi_32 {"3.141592653589793238"_DF};
21+
BOOST_DECIMAL_ATTRIBUTE_UNUSED const auto pi_64 {"3.141592653589793238"_DD};
2222

2323
assert(float_equal(pi_32, static_cast<decimal32>(pi_64))); // Explicit conversion between decimal types
2424
assert(float_equal(pi_32, boost::decimal::numbers::pi_v<decimal32>)); // Constants available in numbers namespace

0 commit comments

Comments
 (0)