Author
anonymous
about 8 years ago
Language
Compiler
Options
Author
anonymous
about 8 years ago
$
prog.cc:5:20: warning: implicit conversion loses floating-point precision: 'typename std::__lazy_enable_if<std::is_arithmetic<float>::value && std::is_arithmetic<int>::value, std::__promote<float, int> >::type' (aka 'double') to 'float' [-Wconversion]
float result = std::pow(2.0f, 2);
~~~~~~ ^~~~~~~~~~~~~~~~~
prog.cc:5:11: warning: unused variable 'result' [-Wunused-variable]
float result = std::pow(2.0f, 2);
^
2 warnings generated.
Exit Code:
0