Skip to content

Commit b210b7d

Browse files
committed
Fixed warnings
1 parent 9b7bb5e commit b210b7d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

include/vsg/io/JSONParser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ namespace vsg
137137
struct ValuesSchema : public Inherit<JSONParser::Schema, ValuesSchema<T>>
138138
{
139139
std::vector<T> values;
140-
void read_number(vsg::JSONParser& parser, std::istream& input) override
140+
void read_number(vsg::JSONParser&, std::istream& input) override
141141
{
142142
T value;
143143
input >> value;

src/vsg/core/IntrusiveAllocator.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,12 @@ void* IntrusiveAllocator::MemoryBlock::allocate(std::size_t size)
249249
return nullptr;
250250
}
251251

252-
void IntrusiveAllocator::MemoryBlock::SlotTester::slot(size_t position, const std::string& name)
252+
void IntrusiveAllocator::MemoryBlock::SlotTester::slot(size_t position, const std::string& in_name)
253253
{
254254
if (mem[position].status == 0)
255-
elements.push_back(Entry{name, position, mem[position], 0, 0});
255+
elements.push_back(Entry{in_name, position, mem[position], 0, 0});
256256
else
257-
elements.push_back(Entry{name, position, mem[position], mem[position + 1].index, mem[position + 2].index});
257+
elements.push_back(Entry{in_name, position, mem[position], mem[position + 1].index, mem[position + 2].index});
258258
}
259259

260260
void IntrusiveAllocator::MemoryBlock::SlotTester::report(std::ostream& out)

0 commit comments

Comments
 (0)