mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 05:12:40 +00:00
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:
parent
467a7c0830
commit
d9d7cbe23b
@ -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>
|
2005-01-27 Lars Gullik Bjonnes <larsbj@gullik.net>
|
||||||
|
|
||||||
* Several files: use convert<> instead of atoi,strToXXX and friends
|
* Several files: use convert<> instead of atoi,strToXXX and friends
|
||||||
|
@ -275,7 +275,9 @@ lyx::graphics::Params InsetGraphicsParams::as_grfxParams() const
|
|||||||
string const tmp = readBB_from_PSFile(filename.absFilename());
|
string const tmp = readBB_from_PSFile(filename.absFilename());
|
||||||
lyxerr[Debug::GRAPHICS] << "BB_from_File: " << tmp << std::endl;
|
lyxerr[Debug::GRAPHICS] << "BB_from_File: " << tmp << std::endl;
|
||||||
if (!tmp.empty()) {
|
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_xl = convert<int>(token(tmp, ' ', 0));
|
||||||
unsigned int const bb_orig_yb = convert<int>(token(tmp, ' ', 1));
|
unsigned int const bb_orig_yb = convert<int>(token(tmp, ' ', 1));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user