Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6e090b3

Browse files
committed
Merge pull request#494 from el-bart/0.11-devel
0.11 devel- GCC compilation warnings fixed
2 parents07aa9fd +ba3b3f3 commit6e090b3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎libs/mime/test/mime-roundtrip.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ void test_roundtrip(const char *fileName) {
7676
BOOST_CHECK_EQUAL(readfile(fileName),from_mime(mp));
7777
}
7878

79-
voidtest_expected_parse_fail(constchar *) {}
8079
}
8180

8281
usingnamespaceboost::unit_test;

‎libs/network/example/http/fileserver.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include<sys/fcntl.h>
1313
#include<unistd.h>
1414
#include<iostream>
15+
#include<cassert>
1516

1617
namespacehttp= boost::network::http;
1718
namespaceutils= boost::network::utils;
@@ -142,7 +143,8 @@ struct connection_handler : boost::enable_shared_from_this<connection_handler> {
142143
voidhandle_chunk(std::pair<void *, std::size_t> mmaped_region,off_t offset,
143144
server::connection_ptr connection,
144145
boost::system::error_codeconst &ec) {
145-
if (!ec && offset < mmaped_region.second)
146+
assert(offset>=0);
147+
if (!ec &&static_cast<std::size_t>(offset) < mmaped_region.second)
146148
send_file(mmaped_region, offset, connection);
147149
}
148150

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp