Skip to content

Commit 3d383ee

Browse files
committed
Avoid a few warnings from MSVC
1 parent 2d8bcc1 commit 3d383ee

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/dom/value.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -719,13 +719,13 @@ stringify(
719719
Array::size_type n = arr.size();
720720
for(std::size_t i = 0; i < n; ++i)
721721
{
722-
dom::Value value = arr.get(i);
723-
if (value.isUndefined() || value.isFunction())
722+
dom::Value v = arr.get(i);
723+
if (v.isUndefined() || v.isFunction())
724724
{
725725
continue;
726726
}
727727
dest.append(indent);
728-
stringify(dest, value, indent, visited);
728+
stringify(dest, v, indent, visited);
729729
if(i != n - 1)
730730
{
731731
dest.push_back(',');

src/test_suite/test_suite.cpp

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

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

test/handlebars.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3897,7 +3897,7 @@ helpers()
38973897
// pathed lambas with parameters
38983898
{
38993899
dom::Object hash;
3900-
dom::Function helper = dom::makeInvocable([](dom::Value const& arg) {
3900+
dom::Function helper = dom::makeInvocable([](dom::Value const&) {
39013901
return dom::Value("winning");
39023902
});
39033903
hash.set("helper", helper);
@@ -4491,7 +4491,7 @@ helpers()
44914491
// should take precedence over helper values
44924492
{
44934493
std::string string = "{{#goodbyes as |value|}}{{value}}{{/goodbyes}}{{value}}";
4494-
hbs.registerHelper("value", [](dom::Value const& options) {
4494+
hbs.registerHelper("value", [](dom::Value const&) {
44954495
return "foo";
44964496
});
44974497
hbs.registerHelper("goodbyes", [](dom::Value const& options) {
@@ -4702,8 +4702,8 @@ track_ids()
47024702
hbs.registerHelper("wycats", [](
47034703
dom::Value const& passiveVoice,
47044704
dom::Value const& noun,
4705-
dom::Value const& thiz,
4706-
dom::Value const& thiz2,
4705+
dom::Value const& /*thiz*/,
4706+
dom::Value const& /*thiz2*/,
47074707
dom::Value const& options) {
47084708
BOOST_TEST(options.get("ids").get(0) == "is.a");
47094709
BOOST_TEST(options.get("ids").get(1) == "../slave.driver");
@@ -4802,7 +4802,7 @@ track_ids()
48024802
hbs.registerHelper("wycats", [](
48034803
dom::Value const& passiveVoice,
48044804
dom::Value const& noun,
4805-
dom::Value const& blah,
4805+
dom::Value const& /*blah*/,
48064806
dom::Value const& options)
48074807
{
48084808
BOOST_TEST(options.get("ids").get(0) == "zomg.a");

0 commit comments

Comments
 (0)