From: Jean-Marc Lasgouttes Date: Thu, 28 Oct 1999 15:19:59 +0000 (+0000) Subject: Bracket some #warning directives with WITH_WARNINGS X-Git-Tag: 1.6.10~22563 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8030b42ab0354d4facf1b8ba768ed1059e50cda7;p=features.git Bracket some #warning directives with WITH_WARNINGS git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@267 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/ChangeLog b/ChangeLog index d35b9ce46d..58772aa886 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +1999-10-28 Jean-Marc Lasgouttes + + * src/support/syscall.C (Systemcalls::kill): + src/support/filetools.C (PutEnv, PutEnvPath): + src/lyx_cb.C (addNewlineAndDepth): + src/FontInfo.C (FontInfo::resize): condition some #warning + directives with WITH_WARNINGS. + + 1999-10-28 Lars Gullik Bjønnes * src/form1.C (create_form_Figure): added a couple fo "no-c-format" diff --git a/INSTALL b/INSTALL index f9e6b2579b..36e5ae3ef6 100644 --- a/INSTALL +++ b/INSTALL @@ -63,9 +63,6 @@ to compile LyX are gcc 2.8.1 and 2.95.x, the various versions of egcs and Digital C++ version 6.1. Please tell us your experience with other compilers. -If you compile LyX with gcc, you should not need to have libg++ installed -on most systems. However, see the note in the section `Problems'. - If you make modifications to files in src/ (for example by applying a patch), you will need to have the GNU gettext package installed, due to some dependencies in the makefiles. You can find the latest (alpha) diff --git a/src/FontInfo.C b/src/FontInfo.C index aba45bec46..7ac5e6bb29 100644 --- a/src/FontInfo.C +++ b/src/FontInfo.C @@ -70,7 +70,9 @@ string FontInfo::getFontname(int size) /// Build newly sized font string string FontInfo::resize(string const & font, int size) const { // Find the position of the size spec +#ifdef WITH_WARNINGS #warning rewrite to use std::string constructs +#endif int cut = 0, before = 0, after = 0; for (string::size_type i = 0; i < font.length(); ++i) { if (font[i] == '-') { diff --git a/src/lyx_cb.C b/src/lyx_cb.C index fdb155bbd5..8b46912c9b 100644 --- a/src/lyx_cb.C +++ b/src/lyx_cb.C @@ -4071,7 +4071,9 @@ void UpdateInsetUpdateList() InsetUpdateList = 0; } +#ifdef WITH_WARNINGS #warning UGLY!! +#endif // I know we shouldn't put anything in here but this seems the fastest // way to do this (and the cleanest for now). This function just inserts // a newline in the string and the inserts 'depth'-spaces so that the diff --git a/src/support/filetools.C b/src/support/filetools.C index 0057188406..bc295d32c0 100644 --- a/src/support/filetools.C +++ b/src/support/filetools.C @@ -307,7 +307,9 @@ string GetEnvPath(string const & name) bool PutEnv(string const & envstr) { +#ifdef WITH_WARNINGS #warning Look at and fix this. +#endif // f.ex. what about error checking? int retval = 0; #if HAVE_PUTENV @@ -329,7 +331,9 @@ bool PutEnv(string const & envstr) bool PutEnvPath(string const & envstr) { string pathlist = envstr; +#ifdef WITH_WARNINGS #warning Verify that this is correct. +#endif #ifdef __EMX__ pathlist = subst(pathlist, ':', ';'); pathlist = subst(pathlist, '/', '\\'); diff --git a/src/support/syscall.C b/src/support/syscall.C index c5c99eadea..8b18c28704 100644 --- a/src/support/syscall.C +++ b/src/support/syscall.C @@ -92,7 +92,9 @@ void Systemcalls::kill(int tolerance) { // Here, we should add the PID to a list of // waiting processes to kill if they are not // dead without tolerance seconds +#ifdef WITH_WARNINGS #warning Implement this using the timer of the singleton systemcontroller (Asger) +#endif } }