Skip to content

Commit 1a0ed1a

Browse files
committed
Silence spurious GCC 8 warning
For an unknown reason GCC 8 thinks is_float is never used.
1 parent d8b03bf commit 1a0ed1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jbmc/src/java_bytecode/expr2java.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ std::string type2java(const typet &type, const namespacet &ns);
5858
template <typename float_type>
5959
std::string floating_point_to_java_string(float_type value)
6060
{
61-
const auto is_float = std::is_same<float_type, float>::value;
61+
static const bool is_float = std::is_same<float_type, float>::value;
6262
static const std::string class_name = is_float ? "Float" : "Double";
6363
if(std::isnan(value))
6464
return class_name + ".NaN";

0 commit comments

Comments
 (0)