Skip to content

Commit ec8a50b

Browse files
committed
Merge #10808: Avoid some new gcc warnings in 15
c73b8be Explicitly initialize prevector::_union to avoid new warning (Matt Corallo) 1016dac Fix signed/unsigned comparison warning introduced in c8e29d7. (Matt Corallo) Tree-SHA512: d1574b0fdc9bfddc3517c382d34418b1d8ed80c81d2f6fd19378c064af8d7704fb84ef8b740ff97f7ec7609bd6de76348921fcc227e1ce97127947a0d22c7887
2 parents f90603a + c73b8be commit ec8a50b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core_read.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ CScript ParseScript(const std::string& s)
2727

2828
if (mapOpNames.empty())
2929
{
30-
for (int op = 0; op <= MAX_OPCODE; op++)
30+
for (unsigned int op = 0; op <= MAX_OPCODE; op++)
3131
{
3232
// Allow OP_RESERVED to get into mapOpNames
3333
if (op < OP_NOP && op != OP_RESERVED)

src/prevector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class prevector {
220220
}
221221
}
222222

223-
prevector() : _size(0) {}
223+
prevector() : _size(0), _union{{}} {}
224224

225225
explicit prevector(size_type n) : _size(0) {
226226
resize(n);

0 commit comments

Comments
 (0)