]> git.lyx.org Git - features.git/commitdiff
Protect '#warning ...' with '#ifdef WITH_WARNINGS' guard.
authorAngus Leeming <leeming@lyx.org>
Mon, 31 Jan 2005 10:20:29 +0000 (10:20 +0000)
committerAngus Leeming <leeming@lyx.org>
Mon, 31 Jan 2005 10:20:29 +0000 (10:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9546 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetgraphicsParams.C

index 74c311c28b4dc5a4e891d710a9d19bce962570e0..a77a48a0f10d1ab1e1c9361fb99174e16790237c 100644 (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
index fd9678471c48f428560de8c41701984cb1875c8b..c0e140316c02189689f0036aac80bc42a9793483 100644 (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));