Le 11/01/2015 11:53, Georg Baum a écrit :
Because they are on by default in MSVC and off by default in gcc. You can
get similar ones with gcc by calling it with -Wconversion (but that outputs
many more).

Yes, I tried it, but it is not useful.

I have had cases where those warnings showed a real problem, and in my
experience it is worth it to have a look at them. In the cases where they
are harmless it is easy to state with a

static_cast<int>(xxx)

that the author of that code is aware that there is a possiblly lossy
conversion, but that the loss is no problem.

In the case of this code, I'd like to eventually get rid of the floats, but I cannot do it before RowPainter is rewritten to use the Row elements. So marking these points is worthwhile.

JMarc

Reply via email to