Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

Commit

Permalink
Fix warnings with DMD 2.059.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Apr 13, 2012
1 parent ca56258 commit 16b69e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/mci/core/analysis/constant.d
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public struct Constant
}
}

public hash_t toHash() const
public hash_t toHash() const nothrow
{
final switch (_type)
{
Expand Down
2 changes: 1 addition & 1 deletion src/mci/core/nullable.d
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public struct Nullable(T)
return 0;
}

public hash_t toHash() const
public hash_t toHash() const nothrow
{
if (!_hasValue)
{
Expand Down
6 changes: 3 additions & 3 deletions src/mci/core/tuple.d
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public struct Tuple(X)
return 0;
}

public hash_t toHash() const
public hash_t toHash() const nothrow
{
return typeid(X).getHash(&_x);
}
Expand Down Expand Up @@ -77,7 +77,7 @@ public struct Tuple(X, Y)
return 0;
}

public hash_t toHash() const
public hash_t toHash() const nothrow
{
return typeid(X).getHash(&_x) + typeid(Y).getHash(&_y);
}
Expand Down Expand Up @@ -135,7 +135,7 @@ public struct Tuple(X, Y, Z)
return 0;
}

public hash_t toHash() const
public hash_t toHash() const nothrow
{
return typeid(X).getHash(&_x) + typeid(Y).getHash(&_y) + typeid(Z).getHash(&_z);
}
Expand Down

0 comments on commit 16b69e5

Please sign in to comment.