Protect '#warning ...' with '#ifdef WITH_WARNINGS' guard.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9546 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2005-01-31 10:20:29 +00:00
parent 467a7c0830
commit d9d7cbe23b
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-01-31 Angus Leeming <leeming@lyx.org>
* insetgraphicsParams.C: protect a #warning preprocessor call
with a #ifdef WITH_WARNINGS guard.
2005-01-27 Lars Gullik Bjonnes <larsbj@gullik.net>
* Several files: use convert<> instead of atoi,strToXXX and friends

View File

@ -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<int>(token(tmp, ' ', 0));
unsigned int const bb_orig_yb = convert<int>(token(tmp, ' ', 1));