diff --git a/src/bele.h b/src/bele.h index 05199fce..f4a9b922 100644 --- a/src/bele.h +++ b/src/bele.h @@ -587,13 +587,13 @@ int __acc_cdecl_qsort le64_compare_signed(const void *, const void *); // forward declarations namespace N_BELE_CTP { -class BEPolicy; class LEPolicy; +struct BEPolicy; struct LEPolicy; extern const BEPolicy be_policy; extern const LEPolicy le_policy; } namespace N_BELE_RTP { -class AbstractPolicy; -class BEPolicy; class LEPolicy; +struct AbstractPolicy; +struct BEPolicy; struct LEPolicy; extern const BEPolicy be_policy; extern const LEPolicy le_policy; } diff --git a/src/work.cpp b/src/work.cpp index 4ff1fb7d..005e68c9 100644 --- a/src/work.cpp +++ b/src/work.cpp @@ -304,6 +304,7 @@ void do_files(int i, int argc, char *argv[]) } catch (std::bad_alloc *e) { unlink_ofile(oname); printErr(iname,"out of memory"); + UNUSED(e); //delete e; e_exit(EXIT_ERROR); } catch (const std::bad_alloc &) {