Menu

#54 Sequence point issues

None
closed-accepted
None
5
2017-12-07
2017-12-07
Jerry James
No

GCC 7.2 reports 3 violations of the C standard's sequence point rules (i.e., due to -Wsequence-point). These are places in the code where the order of expression evaluation is undefined, so the compiler may or may not give you the order you expect. The attached patch forces the correct ordering.

1 Attachments

Discussion

  • Sam Steingold

    Sam Steingold - 2017-12-07

    could you please copy/paste the gcc diagnostic messages?
    thanks!

     
  • Sam Steingold

    Sam Steingold - 2017-12-07
    • status: open --> closed-accepted
    • assigned_to: Sam Steingold
    • Group: -->
     

Log in to post a comment.

MongoDB Logo MongoDB