Skip to content

Commit

Permalink
Silence spurious GCC 8 warning
Browse files Browse the repository at this point in the history
For an unknown reason GCC 8 thinks is_float is never used.
  • Loading branch information
tautschnig committed Jun 5, 2018
1 parent 0c00835 commit 7211280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jbmc/src/java_bytecode/expr2java.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ std::string type2java(const typet &type, const namespacet &ns);
template <typename float_type>
std::string floating_point_to_java_string(float_type value)
{
const auto is_float = std::is_same<float_type, float>::value;
static const bool is_float = std::is_same<float_type, float>::value;
static const std::string class_name = is_float ? "Float" : "Double";
if(std::isnan(value))
return class_name + ".NaN";
Expand Down

0 comments on commit 7211280

Please sign in to comment.