Skip to content

Commit d55525f

Browse files
authored
[C++][Pistache] Fix 'unused-parameter' warning on Helpers.h file (#19315)
1 parent 8af3ff2 commit d55525f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

modules/openapi-generator/src/main/resources/cpp-pistache-server/helpers-header.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ namespace {{helpersNamespace}}
8484
}
8585

8686
/// <summary>
87-
/// Determine if the given vector<T> only has unique elements. T must provide the == operator.
87+
/// Determine if the given set<T> only has unique elements.
8888
/// </summary>
8989
template <typename T>
90-
bool hasOnlyUniqueItems(const std::set<T>& set)
90+
bool hasOnlyUniqueItems(const std::set<T>&)
9191
{
9292
return true;
9393
}

samples/server/petstore/cpp-pistache-everything/model/Helpers.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ namespace org::openapitools::server::helpers
9494
}
9595

9696
/// <summary>
97-
/// Determine if the given vector<T> only has unique elements. T must provide the == operator.
97+
/// Determine if the given set<T> only has unique elements.
9898
/// </summary>
9999
template <typename T>
100-
bool hasOnlyUniqueItems(const std::set<T>& set)
100+
bool hasOnlyUniqueItems(const std::set<T>&)
101101
{
102102
return true;
103103
}

samples/server/petstore/cpp-pistache-nested-schema-refs/model/Helpers.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ namespace org::openapitools::server::helpers
9494
}
9595

9696
/// <summary>
97-
/// Determine if the given vector<T> only has unique elements. T must provide the == operator.
97+
/// Determine if the given set<T> only has unique elements.
9898
/// </summary>
9999
template <typename T>
100-
bool hasOnlyUniqueItems(const std::set<T>& set)
100+
bool hasOnlyUniqueItems(const std::set<T>&)
101101
{
102102
return true;
103103
}

samples/server/petstore/cpp-pistache/model/Helpers.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ namespace org::openapitools::server::helpers
9494
}
9595

9696
/// <summary>
97-
/// Determine if the given vector<T> only has unique elements. T must provide the == operator.
97+
/// Determine if the given set<T> only has unique elements.
9898
/// </summary>
9999
template <typename T>
100-
bool hasOnlyUniqueItems(const std::set<T>& set)
100+
bool hasOnlyUniqueItems(const std::set<T>&)
101101
{
102102
return true;
103103
}

0 commit comments

Comments
 (0)