Skip to content
Features
Business
Explore
Marketplace
Pricing
This repository
Sign in
or
Sign up
Watch
1,650
Star
14,864
Fork
9,309
bitcoin
/
bitcoin
Code
Issues
522
Pull requests
238
Projects
8
Insights
Pulse
Graphs
Avoid some new gcc warnings in 15
#10808
Merged
sipa
merged 2 commits into
bitcoin
:
master
from
TheBlueMatt
:
2017-07-15-new-warnings
Jul 15, 2017
Conversation
13
Commits
2
Files changed
2
Changes from
all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
1016dac
Fix signed/unsigned comparison warning introduced in c8e29d7ff0.
TheBlueMatt
Jul 12, 2017
c73b8be
Explicitly initialize prevector::_union to avoid new warning
TheBlueMatt
Jul 12, 2017
Jump to…
Jump to file or symbol
Failed to load files and symbols.
Retry
+2
−2
Unified
Split
Show comments
View
2
src/core_read.cpp
@@ -27,7 +27,7 @@ CScript ParseScript(const std::string& s)
if
(mapOpNames.
empty
())
{
-
for
(
int
op =
0
; op <= MAX_OPCODE; op++)
+
for
(
unsigned
int
op =
0
; op <= MAX_OPCODE; op++)
{
//
Allow OP_RESERVED to get into mapOpNames
if
(op < OP_NOP && op != OP_RESERVED)
Show comments
View
2
src/prevector.h
@@ -220,7 +220,7 @@ class prevector {
}
}
-
prevector
() : _size(
0
) {}
+
prevector
() : _size(
0
)
, _union{{}}
{}
explicit
prevector
(size_type n) : _size(
0
) {
resize
(n);
Toggle all file notes
You can't perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.