src/tuxpaint.c:3311: duplicate condition ?
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
gcc compiler can be made to say:
src/tuxpaint.c:3311:45: warning: duplicated 'if' condition [-Wduplicated-cond]
3311 | else if (cur_tool == TOOL_FILL)
| ~~~~~~~~~^~~~~~~~~~~~
src/tuxpaint.c:3169:45: note: previously used here
3169 | else if (cur_tool == TOOL_FILL)
| ~~~~~~~~~^~~~~~~~~~~~
It looks like one of the if conditions should be deleted.
Mended, thanks! (https://sourceforge.net/p/tuxpaint/tuxpaint/ci/ccb061144a19636333d7266f6c41896609368f43/)