Menu

#2469 save.c:525:37: warning: duplicated ‘if’ condition

None
closed-fixed
nobody
None
2021-12-25
2021-10-22
dcb
No

Source code is

    if (this_arrow->type == arrow_end_absolute) {
        fputs(" to ", fp);
        save_position(fp, &this_arrow->end, 3, FALSE);
    } else if (this_arrow->type == arrow_end_absolute) {
        fputs(" rto ", fp);
        save_position(fp, &this_arrow->end, 3, FALSE);

Discussion

  • Ethan Merritt

    Ethan Merritt - 2021-10-22

    2nd one should be testing against arrow_end_relative

    fixed

     
  • Ethan Merritt

    Ethan Merritt - 2021-10-22
    • status: open --> pending-fixed
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2021-12-25
    • Status: pending-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB