Skip to content

Commit

Permalink
Fix -Werror=shadow warning after recovering EPS
Browse files Browse the repository at this point in the history
  • Loading branch information
piponazo committed Apr 22, 2021
1 parent e53da67 commit e366c78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/epsimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -735,8 +735,8 @@ namespace {
lineStreamAi7Thumbnail >> dummy;
lineStreamAi7Thumbnail >> nativePreview.width_;
lineStreamAi7Thumbnail >> nativePreview.height_;
std::string depth;
lineStreamAi7Thumbnail >> depth;
std::string depthStr;
lineStreamAi7Thumbnail >> depthStr;
std::string lineBeginData;
const size_t posAfterBeginData = readLine(lineBeginData, data, posBeginData, posEndEps);
std::istringstream lineStreamBeginData(lineBeginData);
Expand All @@ -749,9 +749,9 @@ namespace {
nativePreview.size_ = static_cast<uint32_t>(posAi7ThumbnailEndData - posAfterBeginData);
nativePreview.filter_ = "hex-ai7thumbnail-pnm";
nativePreview.mimeType_ = "image/x-portable-anymap";
if (depth != "8") {
if (depthStr != "8") {
#ifndef SUPPRESS_WARNINGS
EXV_WARNING << "Unable to handle Illustrator thumbnail depth: " << depth << "\n";
EXV_WARNING << "Unable to handle Illustrator thumbnail depth: " << depthStr << "\n";
#endif
} else if (beginData != "%%BeginData:") {
#ifndef SUPPRESS_WARNINGS
Expand Down

0 comments on commit e366c78

Please sign in to comment.