From: Angus Leeming Date: Mon, 31 Jan 2005 10:20:29 +0000 (+0000) Subject: Protect '#warning ...' with '#ifdef WITH_WARNINGS' guard. X-Git-Tag: 1.6.10~14605 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d9d7cbe23b69bead2f1af1a3fa1c1bbe31fc0433;p=features.git Protect '#warning ...' with '#ifdef WITH_WARNINGS' guard. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9546 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 74c311c28b..a77a48a0f1 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2005-01-31 Angus Leeming + + * insetgraphicsParams.C: protect a #warning preprocessor call + with a #ifdef WITH_WARNINGS guard. + 2005-01-27 Lars Gullik Bjonnes * Several files: use convert<> instead of atoi,strToXXX and friends diff --git a/src/insets/insetgraphicsParams.C b/src/insets/insetgraphicsParams.C index fd9678471c..c0e140316c 100644 --- a/src/insets/insetgraphicsParams.C +++ b/src/insets/insetgraphicsParams.C @@ -275,7 +275,9 @@ lyx::graphics::Params InsetGraphicsParams::as_grfxParams() const string const tmp = readBB_from_PSFile(filename.absFilename()); lyxerr[Debug::GRAPHICS] << "BB_from_File: " << tmp << std::endl; if (!tmp.empty()) { -#warning why not convert to unsigned int? (Lgb) +#ifdef WITH_WARNINGS +# warning why not convert to unsigned int? (Lgb) +#endif unsigned int const bb_orig_xl = convert(token(tmp, ' ', 0)); unsigned int const bb_orig_yb = convert(token(tmp, ' ', 1));