Skip to content

Commit e0c6cdf

Browse files
authored
Merge pull request #2323 from joto/clang-tidy-fixes
Fix/disable some warnings generated by clang-tidy
2 parents 4f27b1c + 31650f2 commit e0c6cdf

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/geom-functions.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ namespace {
125125

126126
void set_to_same_type(geometry_t *output, geometry_t const &input)
127127
{
128+
// NOLINTNEXTLINE(performance-unnecessary-value-param)
128129
input.visit([&](auto in) { output->set<decltype(in)>(); });
129130
}
130131

@@ -434,7 +435,7 @@ class split_visitor
434435
{}
435436

436437
template <typename T>
437-
void operator()(T) const
438+
void operator()(T const &) const
438439
{}
439440

440441
// false positive https://github.com/llvm/llvm-project/issues/74738
@@ -544,8 +545,9 @@ namespace {
544545
* empty, do not add the first point returned by *it.
545546
*/
546547
template <typename ITERATOR>
547-
void add_nodes_to_linestring(linestring_t *linestring, ITERATOR it,
548-
ITERATOR end)
548+
void add_nodes_to_linestring(
549+
linestring_t *linestring, ITERATOR it,
550+
ITERATOR end) // NOLINT(performance-unnecessary-value-param)
549551
{
550552
if (!linestring->empty()) {
551553
assert(it != end);

src/wildcmp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*
2020
* Returns if a match was found.
2121
*/
22+
// NOLINTNEXTLINE(misc-use-internal-linkage) Seems there is a bug in the checker
2223
bool wild_match(char const *expr, char const *str) noexcept
2324
{
2425
// Code based on

0 commit comments

Comments
 (0)