[C++][Pistache] Fix 'unused-parameter' warning on Helpers.h file (#19315)

This commit is contained in:
Sylvain Joubert 2024-08-14 08:34:11 +02:00 committed by GitHub
parent 8af3ff2828
commit d55525fbc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 8 deletions

View File

@ -84,10 +84,10 @@ namespace {{helpersNamespace}}
} }
/// <summary> /// <summary>
/// Determine if the given vector<T> only has unique elements. T must provide the == operator. /// Determine if the given set<T> only has unique elements.
/// </summary> /// </summary>
template <typename T> template <typename T>
bool hasOnlyUniqueItems(const std::set<T>& set) bool hasOnlyUniqueItems(const std::set<T>&)
{ {
return true; return true;
} }

View File

@ -94,10 +94,10 @@ namespace org::openapitools::server::helpers
} }
/// <summary> /// <summary>
/// Determine if the given vector<T> only has unique elements. T must provide the == operator. /// Determine if the given set<T> only has unique elements.
/// </summary> /// </summary>
template <typename T> template <typename T>
bool hasOnlyUniqueItems(const std::set<T>& set) bool hasOnlyUniqueItems(const std::set<T>&)
{ {
return true; return true;
} }

View File

@ -94,10 +94,10 @@ namespace org::openapitools::server::helpers
} }
/// <summary> /// <summary>
/// Determine if the given vector<T> only has unique elements. T must provide the == operator. /// Determine if the given set<T> only has unique elements.
/// </summary> /// </summary>
template <typename T> template <typename T>
bool hasOnlyUniqueItems(const std::set<T>& set) bool hasOnlyUniqueItems(const std::set<T>&)
{ {
return true; return true;
} }

View File

@ -94,10 +94,10 @@ namespace org::openapitools::server::helpers
} }
/// <summary> /// <summary>
/// Determine if the given vector<T> only has unique elements. T must provide the == operator. /// Determine if the given set<T> only has unique elements.
/// </summary> /// </summary>
template <typename T> template <typename T>
bool hasOnlyUniqueItems(const std::set<T>& set) bool hasOnlyUniqueItems(const std::set<T>&)
{ {
return true; return true;
} }