# HG changeset patch
# Parent d6b4d874f54f3a68cd64401d716f372bb4c738f2
Resolve clang warnins
diff --git a/lemon/concepts/maps.h b/lemon/concepts/maps.h
a
|
b
|
|
49 | 49 | |
50 | 50 | /// Returns the value associated with the given key. |
51 | 51 | Value operator[](const Key &) const { |
52 | | return *(static_cast<Value *>(0)+1); |
| 52 | return Value(); |
53 | 53 | } |
54 | 54 | |
55 | 55 | template<typename _ReadMap> |
diff --git a/test/maps_test.cc b/test/maps_test.cc
a
|
b
|
|
40 | 40 | class C { |
41 | 41 | int _x; |
42 | 42 | public: |
| 43 | C() {} |
43 | 44 | C(int x) : _x(x) {} |
44 | 45 | int get() const { return _x; } |
45 | 46 | }; |