Summary: | app-text/podofo-0.9.6_pre20170428 : /.../PdfError.h:164:92: error: throw will always call terminate() [-Werror=terminate] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Zac Medico <zmedico> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | g2boojum, phobosk |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
app-text:podofo-0.9.6_pre20170428:20170501-222543.log emerge-history.txt environment etc.portage.tbz2 temp.tbz2 |
Description
Toralf Förster
![]() Created attachment 471502 [details]
emerge-info.txt
Created attachment 471504 [details]
app-text:podofo-0.9.6_pre20170428:20170501-222543.log
Created attachment 471506 [details]
emerge-history.txt
Created attachment 471508 [details]
environment
Created attachment 471510 [details]
etc.portage.tbz2
Created attachment 471512 [details]
temp.tbz2
The comments in the relevant code seem to indicate the it is intended to terminate/abort, so maybe the best that can be done is to suppress the compiler warning somehow: https://sourceforge.net/p/podofo/code/1849/tree/podofo/trunk/src/doc/PdfPainter.cpp#l137 PdfPainter::~PdfPainter() { // Throwing exceptions in C++ destructors is not allowed. // Just log the error. // PODOFO_RAISE_LOGIC_IF( m_pCanvas, "FinishPage() has to be called after a page is completed!" ); // Note that we can't do this for the user, since FinishPage() might // throw and we can't safely have that in a dtor. That also means // we can't throw here, but must abort. if( m_pCanvas ) PdfError::LogMessage( eLogSeverity_Error, "PdfPainter::~PdfPainter(): FinishPage() has to be called after a page is completed!" ); PODOFO_ASSERT( !m_pCanvas ); } |