Skip to content

Commit f4b5a82

Browse files
committed
Fix compiler warnings
1 parent 2cd706c commit f4b5a82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

filter/string.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2274,7 +2274,7 @@ void hex_dump (const void* addr, const int len)
22742274

22752275
int i;
22762276
unsigned char buff[per_line+1];
2277-
const unsigned char* pc = (const unsigned char*)addr;
2277+
const unsigned char* pc = static_cast<const unsigned char*>(addr);
22782278

22792279
// Process every byte in the data.
22802280
for (i = 0; i < len; i++) {

unittests/http.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ TEST (http, parse_post)
6161
using container = std::vector<std::pair<std::string,std::string>>;
6262

6363
// Test POST data of type application/x-www-form-urlencoded.
64-
for (const std::string content_type : {
64+
for (const std::string& content_type : {
6565
std::string(application_x_www_form_urlencoded),
6666
std::string(application_x_www_form_urlencoded) + "; charset=UTF-8",
6767
}) {

0 commit comments

Comments
 (0)