Skip to content

Commit 931ec30

Browse files
committed
Marks some false positives for clang-tidy google-runtime-int warning.
1 parent b59ef02 commit 931ec30

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/osmium/dynamic_handler.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ auto _name_##_dispatch(THandler& handler, const osmium::_type_& object, long) ->
111111
}
112112

113113
template <typename THandler>
114-
void flush_dispatch(THandler& /*handler*/, long /*dispatch*/) {
114+
void flush_dispatch(THandler& /*handler*/, long /*dispatch*/) { // NOLINT clang-tidy: google-runtime-int
115115
}
116116

117117
template <typename THandler>

include/osmium/io/detail/pbf_decoder.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -749,8 +749,8 @@ namespace osmium {
749749
if (!zlib_data.empty() && raw_size != 0) {
750750
return osmium::io::detail::zlib_uncompress_string(
751751
zlib_data.data(),
752-
static_cast<unsigned long>(zlib_data.size()),
753-
static_cast<unsigned long>(raw_size),
752+
static_cast<unsigned long>(zlib_data.size()), // NOLINT clang-tidy: google-runtime-int
753+
static_cast<unsigned long>(raw_size), // NOLINT clang-tidy: google-runtime-int
754754
output
755755
);
756756
}

0 commit comments

Comments
 (0)