Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unused variable #44

Closed
igormironchik opened this issue Feb 8, 2023 · 1 comment
Closed

Unused variable #44

igormironchik opened this issue Feb 8, 2023 · 1 comment

Comments

@igormironchik
Copy link
Contributor

PdfFont* PdfFontManager::addImported(vector<PdfFont*>& fonts, unique_ptr<PdfFont>&& font)
{
    auto fontPtr = font.get();
    fonts.push_back(fontPtr);
    auto inserted = m_fonts.insert({ fontPtr->GetObject().GetIndirectReference(), Storage{ false, std::move(font) } });
    return fontPtr;
}
/home/igor/Work/Projects/md-pdf/3rdparty/podofo/src/podofo/main/PdfFontManager.cpp:90: warning: variable ‘inserted’ set but not used [-Wunused-but-set-variable]
/home/igor/Work/Projects/md-pdf/3rdparty/podofo/src/podofo/main/PdfFontManager.cpp: In member function ‘PoDoFo::PdfFont* PoDoFo::PdfFontManager::addImported(std::vector<PoDoFo::PdfFont*>&, std::unique_ptr<PoDoFo::PdfFont>&&)’:
/home/igor/Work/Projects/md-pdf/3rdparty/podofo/src/podofo/main/PdfFontManager.cpp:90:10: warning: variable ‘inserted’ set but not used [-Wunused-but-set-variable]
   90 |     auto inserted = m_fonts.insert({ fontPtr->GetObject().GetIndirectReference(), Storage{ false, std::move(font) } });
      |          ^~~~~~~~
ceztko added a commit that referenced this issue Feb 8, 2023
@ceztko
Copy link
Contributor

ceztko commented Feb 8, 2023

Thank you.

@ceztko ceztko closed this as completed Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants