From 01daccfaf7f9aabdba85de4de832874fc1125cd1 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Sat, 6 Mar 2010 16:35:18 +0100 Subject: [PATCH] Avoid compiler warnings. --- src/bele.h | 6 +++--- src/work.cpp | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) 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 &) {