COIN-OR::LEMON - Graph Library

Ticket #634: clang-fix.patch

File clang-fix.patch, 671 bytes (added by Alpar Juttner, 4 years ago)
  • lemon/concepts/maps.h

    # HG changeset patch
    # Parent  d6b4d874f54f3a68cd64401d716f372bb4c738f2
    Resolve clang warnins
    
    diff --git a/lemon/concepts/maps.h b/lemon/concepts/maps.h
    a b  
    4949
    5050      /// Returns the value associated with the given key.
    5151      Value operator[](const Key &) const {
    52         return *(static_cast<Value *>(0)+1);
     52        return Value();
    5353      }
    5454
    5555      template<typename _ReadMap>
  • test/maps_test.cc

    diff --git a/test/maps_test.cc b/test/maps_test.cc
    a b  
    4040class C {
    4141  int _x;
    4242public:
     43  C() {}
    4344  C(int x) : _x(x) {}
    4445  int get() const { return _x; }
    4546};