mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 08:55:11 +01:00
Fix -Wshadow warnings
This commit is contained in:
1 parent
badce3ffa4
commit
16b51dd2a4
2 files changed
+4
-2
No files matched your search
@@ -172,12 +172,13 @@ HandleMetadata(
|
|||||||
return ErrMsg_MaxInclMetadataLengthExceeded;
|
return ErrMsg_MaxInclMetadataLengthExceeded;
|
||||||
} else if (io_buf.reader_position() > r.min_incl) {
|
} else if (io_buf.reader_position() > r.min_incl) {
|
||||||
return ErrMsg_UnsupportedMetadata;
|
return ErrMsg_UnsupportedMetadata;
|
||||||
}
|
} else {
|
||||||
std::string error_message =
|
std::string error_message =
|
||||||
AdvanceIOBufferTo(input, io_buf, r.min_incl);
|
AdvanceIOBufferTo(input, io_buf, r.min_incl);
|
||||||
if (!error_message.empty()) {
|
if (!error_message.empty()) {
|
||||||
return error_message;
|
return error_message;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (uint64_t num_to_copy = r.length(); num_to_copy > 0;) {
|
for (uint64_t num_to_copy = r.length(); num_to_copy > 0;) {
|
||||||
uint8_t* ptr = io_buf.reader_pointer();
|
uint8_t* ptr = io_buf.reader_pointer();
|
||||||
|
|||||||
@@ -40321,12 +40321,13 @@ HandleMetadata(
|
|||||||
return ErrMsg_MaxInclMetadataLengthExceeded;
|
return ErrMsg_MaxInclMetadataLengthExceeded;
|
||||||
} else if (io_buf.reader_position() > r.min_incl) {
|
} else if (io_buf.reader_position() > r.min_incl) {
|
||||||
return ErrMsg_UnsupportedMetadata;
|
return ErrMsg_UnsupportedMetadata;
|
||||||
}
|
} else {
|
||||||
std::string error_message =
|
std::string error_message =
|
||||||
AdvanceIOBufferTo(input, io_buf, r.min_incl);
|
AdvanceIOBufferTo(input, io_buf, r.min_incl);
|
||||||
if (!error_message.empty()) {
|
if (!error_message.empty()) {
|
||||||
return error_message;
|
return error_message;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (uint64_t num_to_copy = r.length(); num_to_copy > 0;) {
|
for (uint64_t num_to_copy = r.length(); num_to_copy > 0;) {
|
||||||
uint8_t* ptr = io_buf.reader_pointer();
|
uint8_t* ptr = io_buf.reader_pointer();
|
||||||
|
|||||||
Reference in new issue
Block a user