COIN-OR::LEMON - Graph Library

Ticket #54: gcc-4.3-warnings.patch

File gcc-4.3-warnings.patch, 1.7 KB (added by Balazs Dezso, 16 years ago)
  • lemon/bits/traits.h

    # HG changeset patch
    # User Balazs Dezso <deba@inf.elte.hu>
    # Date 1206631643 -3600
    # Node ID d59ce3f357216c7bffbdc5d12972af0e1b433764
    # Parent  f2d66d810c88fed376f6d79890418b04dea40707
    Ignore warnings with gcc-4.3
    
    diff -r f2d66d810c88 -r d59ce3f35721 lemon/bits/traits.h
    a b namespace lemon { 
    150150    typedef typename Map::Key Key;
    151151    typedef typename Map::Value Value;
    152152
    153     typedef const Value ConstReturnValue;
    154     typedef const Value ReturnValue;
     153    typedef Value ConstReturnValue;
     154    typedef Value ReturnValue;
    155155  };
    156156
    157157  template <typename Map>
    namespace lemon { 
    178178    typedef typename MatrixMap::SecondKey SecondKey;
    179179    typedef typename MatrixMap::Value Value;
    180180
    181     typedef const Value ConstReturnValue;
    182     typedef const Value ReturnValue;
     181    typedef Value ConstReturnValue;
     182    typedef Value ReturnValue;
    183183  };
    184184
    185185  template <typename MatrixMap>
  • lemon/list_graph.h

    diff -r f2d66d810c88 -r d59ce3f35721 lemon/list_graph.h
    a b namespace lemon { 
    115115      int n;
    116116      for(n = first_node;
    117117          n!=-1 && nodes[n].first_in == -1;
    118           n = nodes[n].next);
     118          n = nodes[n].next) {}
    119119      arc.id = (n == -1) ? -1 : nodes[n].first_in;
    120120    }
    121121
    namespace lemon { 
    125125      } else {
    126126        int n;
    127127        for(n = nodes[arcs[arc.id].target].next;
    128           n!=-1 && nodes[n].first_in == -1;
    129           n = nodes[n].next);
     128            n!=-1 && nodes[n].first_in == -1;
     129            n = nodes[n].next) {}
    130130        arc.id = (n == -1) ? -1 : nodes[n].first_in;
    131131      }     
    132132    }