Menu

#5485 undefined operation (GCC warning) in page-turn-page-breaking.cc

Fixed
Enhancement
2019-03-06
2019-02-25
No

This has been verified by multiple persons:

page-turn-page-breaking.cc: In instantiation of 'bool is_break(T*) [with T =
Grob]':
page-turn-page-breaking.cc:50:54:   required from here
page-turn-page-breaking.cc:38:3: warning: operation on '*0' may be undefined
[-Wsequence-point]
   if (turnable
   ^~
page-turn-page-breaking.cc: In instantiation of 'bool is_break(T*) [with T =
Prob]':
page-turn-page-breaking.cc:50:54:   required from here
page-turn-page-breaking.cc:38:3: warning: operation on '*0' may be undefined
[-Wsequence-point]

https://codereview.appspot.com/351880043

Discussion

  • Malte Meyn

    Malte Meyn - 2019-02-28
    • status: Accepted --> Started
    • assigned_to: Malte Meyn
     
  • Malte Meyn

    Malte Meyn - 2019-02-28
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -14,3 +14,5 @@
     page-turn-page-breaking.cc:38:3: warning: operation on '*0' may be undefined
     [-Wsequence-point]
     ~~~
    +
    +https://codereview.appspot.com/351880043
    
    • Needs: -->
    • Type: --> Build
     
  • Anonymous

    Anonymous - 2019-03-01
    • Needs: -->
    • Patch: new --> review
    • Type: --> Enhancement
     
  • Anonymous

    Anonymous - 2019-03-01

    Passes make, make check and a full make doc.

     
  • Anonymous

    Anonymous - 2019-03-03
    • Patch: review --> countdown
     
  • Anonymous

    Anonymous - 2019-03-03

    Patch on countdown for March 6th

     
  • Anonymous

    Anonymous - 2019-03-06
    • Patch: countdown --> push
     
  • Anonymous

    Anonymous - 2019-03-06

    Patch counted down - please push to staging

     
  • Malte Meyn

    Malte Meyn - 2019-03-06
    • labels: --> Fixed_2_21_0
    • status: Started --> Fixed
    • Patch: push -->
     
  • Malte Meyn

    Malte Meyn - 2019-03-06

    commit 5eb392ddd5f78dd7a071d48b1f6ab6e859b6dc8d
    Author: Malte Meyn lilypond@maltemeyn.de
    Date: Thu Feb 28 13:48:11 2019 +0100

    Issue 5485: avoid -Wsequence-point warning