2015-06-22 23:37 GMT+06:00 Olaf Hering :
>
> gcc 4.8 in openSUSE 13.1 warns about this code:
> states/state_brush.cpp:824:44: warning: operation on 'hue' may be undefined
> [-Wsequence-point]
> : hue = 60.0 * (((r - g)/(diff))+4.0);
>
> Remove early assignment and adjust indention to clear
gcc 4.8 in openSUSE 13.1 warns about this code:
states/state_brush.cpp:824:44: warning: operation on 'hue' may be undefined
[-Wsequence-point]
: hue = 60.0 * (((r - g)/(diff))+4.0);
Remove early assignment and adjust indention to clearify logical code
flow.
Signed-off-by: Olaf Hering
-