conversion to ‘float’ from ‘double’ may alter its value [-Werror=float-conversion]
IdoSagiv opened this issue · comments
warning while converting double to float
.../indicators/include/indicators/progress_bar.hpp: In member function ‘void indicators::ProgressBar::print_progress(bool)’:
.../indicators/include/indicators/progress_bar.hpp:325:79: error: conversion to ‘float’ from ‘double’ may alter its value [-Werror=float-conversion]
writer.write(double(progress_) / double(max_progress) * 100.0f);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
cc1plus: all warnings being treated as errors