Skip to content

Commit 12ba1bb

Browse files
committed
Fix a linker error when using clang-12
When building the project with clang-12 we get an error ld.lld: error: undefined symbol: bool std::operator==<re2::RE2>(std::shared_ptr<re2::RE2> const&, std::nullptr_t) For some reason we cannot find the nullptr symbol. That is why we change to using the NULL macro that should be OK in an if statement as we do not pass it to other functions
1 parent 9ec97ae commit 12ba1bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/server/admin/stats_params.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ struct StatsParams {
8686
return false;
8787
}
8888

89-
if (re2_filter_ != nullptr && !re2::RE2::PartialMatch(metric.name(), *re2_filter_)) {
89+
if (re2_filter_ != NULL && !re2::RE2::PartialMatch(metric.name(), *re2_filter_)) {
9090
return false;
9191
}
92-
92+
9393
return true;
9494
}
9595

0 commit comments

Comments
 (0)