1
0
forked from 0ad/0ad

Avoid unused parameter warnings due to safe bool operators.

This was SVN commit r11142.
This commit is contained in:
historic_bruno 2012-02-25 06:24:24 +00:00
parent 17b8c6360e
commit b7e848de23
2 changed files with 4 additions and 4 deletions

View File

@ -83,14 +83,14 @@ public:
}; };
template<typename T, typename U> template<typename T, typename U>
bool operator!=(const CmpPtr<T>& lhs, const U& rhs) bool operator!=(const CmpPtr<T>& lhs, const U& UNUSED(rhs))
{ {
lhs.this_type_does_not_support_comparisons(); lhs.this_type_does_not_support_comparisons();
return false; return false;
} }
template<typename T, typename U> template<typename T, typename U>
bool operator==(const CmpPtr<T>& lhs, const U& rhs) bool operator==(const CmpPtr<T>& lhs, const U& UNUSED(rhs))
{ {
lhs.this_type_does_not_support_comparisons(); lhs.this_type_does_not_support_comparisons();
return false; return false;

View File

@ -69,13 +69,13 @@ public:
}; };
template<typename T, typename U> template<typename T, typename U>
bool operator!=(const AtSmartPtr<T>& lhs, const U& rhs) bool operator!=(const AtSmartPtr<T>& lhs, const U&)
{ {
lhs.this_type_does_not_support_comparisions(); lhs.this_type_does_not_support_comparisions();
return false; return false;
} }
template<typename T, typename U> template<typename T, typename U>
bool operator==(const AtSmartPtr<T>& lhs, const U& rhs) bool operator==(const AtSmartPtr<T>& lhs, const U&)
{ {
lhs.this_type_does_not_support_comparisions(); lhs.this_type_does_not_support_comparisions();
return false; return false;