xwayland/dnd.c:211:49: warning: duplicated ‘if’ condition
gcc with compiler flag -Wduplicated-cond says:
../xwayland/dnd.c: In function ‘weston_wm_handle_dnd_event’: ../xwayland/dnd.c:211:49: warning: duplicated ‘if’ condition [-Wduplicated-cond] 211 | } else if (client_message->type == wm->atom.xdnd_drop) { | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ ../xwayland/dnd.c:208:49: note: previously used here 208 | } else if (client_message->type == wm->atom.xdnd_drop) { | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
Source code is
} else if (client_message->type == wm->atom.xdnd_drop) {
weston_log("got drop!\n");
return 1;
} else if (client_message->type == wm->atom.xdnd_drop) {