Skip to content

Commit c3d6cd3

Browse files
committed
fix: remove (names of) unused arguments
1 parent 925db23 commit c3d6cd3

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

include/mrdocs/Metadata/Info/Friend.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ merge(FriendInfo& I, FriendInfo&& Other);
4343
template <class IO>
4444
void
4545
tag_invoke(
46-
dom::LazyObjectMapTag t,
46+
dom::LazyObjectMapTag,
4747
IO& io,
4848
FriendInfo const& I,
4949
DomCorpus const* domCorpus)

include/mrdocs/Metadata/Javadoc.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1873,7 +1873,7 @@ void merge(Javadoc& I, Javadoc&& other)
18731873
template <class IO>
18741874
void
18751875
tag_invoke(
1876-
dom::LazyObjectMapTag t,
1876+
dom::LazyObjectMapTag,
18771877
IO& io,
18781878
Javadoc const& I,
18791879
DomCorpus const* domCorpus)

src/lib/Lib/CorpusImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ findFirstParentInfo(
119119
MRDOCS_CHECK_OR(contextUniquePtr, SymbolID::invalid);
120120
auto& context = *contextUniquePtr;
121121
bool const isParent = visit(context, []<typename InfoTy>(
122-
InfoTy const& I) -> bool
122+
InfoTy const&) -> bool
123123
{
124124
return InfoParent<InfoTy>;
125125
});

src/lib/Metadata/Finalizers/Javadoc/Function.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ innermostTypenameString(Polymorphic<TypeInfo> const& T)
107107
}
108108

109109
bool
110-
populateFunctionBriefFromClass(FunctionInfo& I, CorpusImpl const& corpus)
110+
populateFunctionBriefFromClass(FunctionInfo& I)
111111
{
112112
switch (I.Class)
113113
{
@@ -237,10 +237,10 @@ populateFunctionBriefFromOperator(FunctionInfo& I)
237237
}
238238

239239
void
240-
populateFunctionBrief(FunctionInfo& I, CorpusImpl const& corpus)
240+
populateFunctionBrief(FunctionInfo& I)
241241
{
242242
MRDOCS_CHECK_OR(!I.javadoc->brief);
243-
MRDOCS_CHECK_OR(!populateFunctionBriefFromClass(I, corpus));
243+
MRDOCS_CHECK_OR(!populateFunctionBriefFromClass(I));
244244
MRDOCS_CHECK_OR(!populateFunctionBriefFromOperator(I));
245245
}
246246

src/lib/Metadata/Finalizers/JavadocFinalizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ populateFunctionJavadoc(FunctionInfo& I) const
565565
}
566566

567567
// Populate a missing javadoc brief
568-
populateFunctionBrief(I, corpus_);
568+
populateFunctionBrief(I);
569569

570570
// Populate a missing javadoc returns
571571
populateFunctionReturns(I, corpus_);

src/lib/Support/Handlebars.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2144,7 +2144,7 @@ parseBlock(
21442144
HandlebarsOptions const& opt,
21452145
detail::RenderState const& state,
21462146
std::string_view &templateText,
2147-
OutputRef &out,
2147+
OutputRef &,
21482148
std::string_view &fnBlock,
21492149
std::string_view &inverseBlocks,
21502150
Handlebars::Tag &inverseTag,
@@ -3664,7 +3664,7 @@ each_fn(dom::Value context, dom::Value const& options)
36643664
{
36653665
dom::Value priorKey;
36663666
auto exp = context.getObject().visit([&](
3667-
dom::String const& key, dom::Value const& value) -> Expected<void>
3667+
dom::String const& key, dom::Value const&) -> Expected<void>
36683668
{
36693669
if (!priorKey.isUndefined())
36703670
{

src/lib/Support/Lua.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ static
210210
void
211211
luaM_report(
212212
Error const& err,
213-
source_location loc =
213+
source_location =
214214
source_location::current())
215215
{
216216
SourceLocation Loc(err.location());
@@ -605,7 +605,7 @@ domValue_push(
605605
static
606606
char const*
607607
Reader(
608-
lua_State *L,
608+
lua_State *,
609609
void* data,
610610
size_t* size)
611611
{
@@ -675,7 +675,7 @@ Expected<Value>
675675
Scope::
676676
getGlobal(
677677
std::string_view key,
678-
source_location loc)
678+
source_location)
679679
{
680680
Access A(*this);
681681
lua_pushglobaltable(A);

src/test/lib/Support/Handlebars.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3863,7 +3863,7 @@ helpers()
38633863
// pathed lambas with parameters
38643864
{
38653865
dom::Object hash;
3866-
dom::Function helper = dom::makeInvocable([](dom::Value const& arg) {
3866+
dom::Function helper = dom::makeInvocable([](dom::Value const&) {
38673867
return dom::Value("winning");
38683868
});
38693869
hash.set("helper", helper);
@@ -4457,7 +4457,7 @@ helpers()
44574457
// should take precedence over helper values
44584458
{
44594459
std::string string = "{{#goodbyes as |value|}}{{value}}{{/goodbyes}}{{value}}";
4460-
hbs.registerHelper("value", [](dom::Value const& options) {
4460+
hbs.registerHelper("value", [](dom::Value const&) {
44614461
return "foo";
44624462
});
44634463
hbs.registerHelper("goodbyes", [](dom::Value const& options) {
@@ -4668,8 +4668,8 @@ track_ids()
46684668
hbs.registerHelper("wycats", [](
46694669
dom::Value const& passiveVoice,
46704670
dom::Value const& noun,
4671-
dom::Value const& thiz,
4672-
dom::Value const& thiz2,
4671+
dom::Value const&,
4672+
dom::Value const&,
46734673
dom::Value const& options) {
46744674
BOOST_TEST(options.get("ids").get(0) == "is.a");
46754675
BOOST_TEST(options.get("ids").get(1) == "../slave.driver");
@@ -4768,7 +4768,7 @@ track_ids()
47684768
hbs.registerHelper("wycats", [](
47694769
dom::Value const& passiveVoice,
47704770
dom::Value const& noun,
4771-
dom::Value const& blah,
4771+
dom::Value const&,
47724772
dom::Value const& options)
47734773
{
47744774
BOOST_TEST(options.get("ids").get(0) == "zomg.a");

src/test_suite/test_suite.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ int run(std::ostream& out)
486486

487487
// Simple main used to produce standalone
488488
// executables that run unit tests.
489-
int unit_test_main(int argc, char const* const* argv)
489+
int unit_test_main(int, char const* const*)
490490
{
491491
#if 0
492492
#if defined(_MSC_VER) && !defined(__clang__)

0 commit comments

Comments
 (0)