Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
pistache
Commits
2a0d0db0
Unverified
Commit
2a0d0db0
authored
Aug 09, 2018
by
Dennis Jenkins
Committed by
GitHub
Aug 09, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #201 from JenniferBuehler/remove_warnings_4.8.4
Remove warnings gcc 4.8.4
parents
27a9c39b
b9f6b90e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
15 deletions
+14
-15
include/pistache/async.h
include/pistache/async.h
+2
-2
include/pistache/client.h
include/pistache/client.h
+1
-1
include/pistache/date.h
include/pistache/date.h
+3
-2
src/common/http_header.cc
src/common/http_header.cc
+4
-6
src/common/peer.cc
src/common/peer.cc
+4
-4
No files found.
include/pistache/async.h
View file @
2a0d0db0
...
...
@@ -253,9 +253,9 @@ namespace Async {
template
<
typename
T
>
struct
Continuable
:
public
Request
{
Continuable
(
const
std
::
shared_ptr
<
Core
>&
chain
)
:
chain_
(
chain
)
,
resolveCount_
(
0
)
:
resolveCount_
(
0
)
,
rejectCount_
(
0
)
,
chain_
(
chain
)
{
}
void
resolve
(
const
std
::
shared_ptr
<
Core
>&
core
)
{
...
...
include/pistache/client.h
View file @
2a0d0db0
...
...
@@ -34,9 +34,9 @@ struct Connection : public std::enable_shared_from_this<Connection> {
Connection
()
:
fd
(
-
1
)
,
connectionState_
(
NotConnected
)
,
inflightCount
(
0
)
,
responsesReceived
(
0
)
,
connectionState_
(
NotConnected
)
{
state_
.
store
(
static_cast
<
uint32_t
>
(
State
::
Idle
));
}
...
...
include/pistache/date.h
View file @
2a0d0db0
...
...
@@ -52,6 +52,7 @@
#include <string>
#include <utility>
#include <type_traits>
#include <memory>
#ifdef __GNUC__
# pragma GCC diagnostic push
...
...
@@ -4232,7 +4233,7 @@ struct fields
weekday
wd
{
7u
};
time_of_day
<
Duration
>
tod
{};
fields
()
=
default
;
fields
()
{}
// = default; // Note: doesn't compile with default
fields
(
year_month_day
ymd_
)
:
ymd
(
ymd_
)
{}
fields
(
weekday
wd_
)
:
wd
(
wd_
)
{}
...
...
@@ -4370,7 +4371,7 @@ scan_keyword(std::basic_istream<CharT, Traits>& is, FwdIter kb, FwdIter ke)
const
unsigned
char
does_match
=
'\2'
;
unsigned
char
statbuf
[
100
];
unsigned
char
*
status
=
statbuf
;
unique_ptr
<
unsigned
char
,
void
(
*
)(
void
*
)
>
stat_hold
(
0
,
free
);
std
::
unique_ptr
<
unsigned
char
,
void
(
*
)(
void
*
)
>
stat_hold
(
0
,
free
);
if
(
nkw
>
sizeof
(
statbuf
))
{
status
=
(
unsigned
char
*
)
malloc
(
nkw
);
...
...
src/common/http_header.cc
View file @
2a0d0db0
...
...
@@ -122,11 +122,6 @@ CacheControl::parseRaw(const char* str, size_t len) {
RawStreamBuf
<>
buf
(
const_cast
<
char
*>
(
str
),
len
);
StreamCursor
cursor
(
&
buf
);
const
char
*
begin
=
str
;
auto
memsize
=
[
&
](
size_t
s
)
{
return
std
::
min
(
s
,
cursor
.
remaining
());
};
do
{
bool
found
=
false
;
...
...
@@ -143,7 +138,6 @@ CacheControl::parseRaw(const char* str, size_t len) {
if
(
!
found
)
{
for
(
const
auto
&
d
:
TimedDirectives
)
{
if
(
match_raw
(
d
.
str
,
d
.
size
,
cursor
))
{
int
c
;
if
(
!
cursor
.
advance
(
1
))
{
throw
std
::
runtime_error
(
"Invalid caching directive, missing delta-seconds"
);
}
...
...
@@ -211,6 +205,7 @@ CacheControl::write(std::ostream& os) const {
case
CacheDirective
:
:
Ext
:
return
""
;
}
return
""
;
};
auto
hasDelta
=
[](
CacheDirective
directive
)
{
...
...
@@ -282,6 +277,9 @@ Connection::write(std::ostream& os) const {
case
ConnectionControl
:
:
KeepAlive
:
os
<<
"Keep-Alive"
;
break
;
case
ConnectionControl
:
:
Ext
:
os
<<
"Ext"
;
break
;
}
}
...
...
src/common/peer.cc
View file @
2a0d0db0
...
...
@@ -18,14 +18,14 @@ namespace Tcp {
using
namespace
std
;
Peer
::
Peer
()
:
fd_
(
-
1
)
,
transport_
(
nullptr
)
:
transport_
(
nullptr
)
,
fd_
(
-
1
)
{
}
Peer
::
Peer
(
const
Address
&
addr
)
:
addr
(
addr
)
:
transport_
(
nullptr
)
,
addr
(
addr
)
,
fd_
(
-
1
)
,
transport_
(
nullptr
)
{
}
Address
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment