Skip to content

Commit

Permalink
matchcompiler.h: fixed some clang-tidy warnings (#5374)
Browse files Browse the repository at this point in the history
These do not show up in the CI since we only scan the non-matchcompiled
code.
  • Loading branch information
firewave authored Aug 29, 2023
1 parent 9d1bb5a commit dac6671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/matchcompiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace MatchCompiler {
template<unsigned int n>
class ConstString {
public:
typedef const char(&StringRef)[n];
using StringRef = const char (&)[n];
explicit ConstString(StringRef s)
: _s(s) {}

Expand All @@ -46,7 +46,7 @@ namespace MatchCompiler {
}

template<>
inline bool equalN<0>(const char[], const char[])
inline bool equalN<0>(const char /*s1*/[], const char /*s2*/[])
{
return true;
}
Expand Down

0 comments on commit dac6671

Please sign in to comment.