Re: Questions regarding compiler warnings

2020-02-15 Thread Pavel Sanda
On Thu, Feb 13, 2020 at 06:28:05PM +0100, Jean-Marc Lasgouttes wrote: > >I can replace asserts with explicit checks if you agree. > >Or completely delete those checks because for most of them getStatus won't > >let > >you in without buffer anyway. > > Either solution will be OK. And do not

Re: Questions regarding compiler warnings

2020-02-13 Thread Scott Kostyshak
On Thu, Feb 13, 2020 at 10:39:29PM +0100, Stephan Witt wrote: > Am 13.02.2020 um 19:05 schrieb Scott Kostyshak : > > > > On Wed, Feb 12, 2020 at 08:45:56PM +0100, Stephan Witt wrote: > > > >> See the attached nice picture… > > > > This picture is great! Did you create it manually or is there

Re: Questions regarding compiler warnings

2020-02-13 Thread Stephan Witt
Am 13.02.2020 um 19:05 schrieb Scott Kostyshak : > > On Wed, Feb 12, 2020 at 08:45:56PM +0100, Stephan Witt wrote: > >> See the attached nice picture… > > This picture is great! Did you create it manually or is there some sort > of magical static analysis tool that does this? It’s the result

Re: Questions regarding compiler warnings

2020-02-13 Thread Scott Kostyshak
On Wed, Feb 12, 2020 at 08:45:56PM +0100, Stephan Witt wrote: > See the attached nice picture… This picture is great! Did you create it manually or is there some sort of magical static analysis tool that does this? Scott signature.asc Description: PGP signature -- lyx-devel mailing list

Re: Questions regarding compiler warnings

2020-02-13 Thread Jean-Marc Lasgouttes
Le 13/02/2020 à 18:16, Pavel Sanda a écrit : On Wed, Feb 12, 2020 at 08:53:14PM +0100, Jean-Marc Lasgouttes wrote: 3. NULL pointer usage In GuiView::dispatchVC are different buffer pointer variables used. Sometimes there is an explicit check for NULL value. Sometimes there is an assertion with

Re: Questions regarding compiler warnings

2020-02-13 Thread Pavel Sanda
On Wed, Feb 12, 2020 at 08:53:14PM +0100, Jean-Marc Lasgouttes wrote: > >3. NULL pointer usage > > > >In GuiView::dispatchVC are different buffer pointer variables used. > >Sometimes there is an explicit check for NULL value. > >Sometimes there is an assertion with break or return for release

Re: Questions regarding compiler warnings

2020-02-12 Thread Jean-Marc Lasgouttes
Le 12/02/2020 à 21:17, Stephan Witt a écrit : I don’t know what I’m talking about either. But, perhaps std::mem_fn is a possible replacement? https://en.cppreference.com/w/cpp/utility/functional/mem_fn I tried it, but it does not seems to work with std::not1. JMarc 2. various memory leak

Re: Questions regarding compiler warnings

2020-02-12 Thread Stephan Witt
Am 12.02.2020 um 20:53 schrieb Jean-Marc Lasgouttes : > > Le 12/02/2020 à 20:45, Stephan Witt a écrit : >> Hi all, >> I've recently upgraded some parts of my tool box. I’m seeing new warnings >> now. >> 1. deprecated warning (removed with C++17?) >> lyx/src/insets/InsetCommandParams.cpp:596:9:

Re: Questions regarding compiler warnings

2020-02-12 Thread Jean-Marc Lasgouttes
Le 12/02/2020 à 20:45, Stephan Witt a écrit : Hi all, I've recently upgraded some parts of my tool box. I’m seeing new warnings now. 1. deprecated warning (removed with C++17?) lyx/src/insets/InsetCommandParams.cpp:596:9: warning: 'mem_fun_ref' is deprecated I already answered this one :)

Re: [LyX/master] Fix #10858 compiler warnings.

2018-06-25 Thread Jean-Marc Lasgouttes
Le 25/06/2018 à 04:43, Richard Kimberly Heck a écrit : I do not know much about this drawT/metricsT code. My guess is that it never got finished. I do not remember seeing it work. Making an ascii representation of a formula is a big job. Should we just remove that code then? I have been

Re: [LyX/master] Fix #10858 compiler warnings.

2018-06-24 Thread Richard Kimberly Heck
c02a >>>> Author: Richard Heck >>>> Date:   Fri Dec 15 23:41:32 2017 -0500 >>>> >>>> Fix #10858 compiler warnings. >>>> --- >>>>   src/mathed/InsetMathHull.cpp |   16 +++- >>>>   src/sup

Re: [LyX/master] Fix #10858 compiler warnings.

2018-06-11 Thread Jean-Marc Lasgouttes
Le 01/05/2018 à 17:58, Richard Heck a écrit : On 05/01/2018 11:27 AM, Scott Kostyshak wrote: On Sat, Dec 16, 2017 at 04:41:40AM +, Richard Heck wrote: commit b954f478e31e640f292f865a5c41c65565e5c02a Author: Richard Heck Date: Fri Dec 15 23:41:32 2017 -0500 Fix #10858 compiler

Re: [LyX/master] Fix #10858 compiler warnings.

2018-06-08 Thread Scott Kostyshak
gt; Date: Fri Dec 15 23:41:32 2017 -0500 > >> > >> Fix #10858 compiler warnings. > >> --- > >> src/mathed/InsetMathHull.cpp | 16 +++- > >> src/support/gzstream.cpp |2 +- > >> 2 files changed, 8 insertions(+), 10 deletio

Re: [LyX/master] Fix #10858 compiler warnings.

2018-05-01 Thread Richard Heck
On 05/01/2018 11:27 AM, Scott Kostyshak wrote: > On Sat, Dec 16, 2017 at 04:41:40AM +, Richard Heck wrote: >> commit b954f478e31e640f292f865a5c41c65565e5c02a >> Author: Richard Heck <rgh...@lyx.org> >> Date: Fri Dec 15 23:41:32 2017 -0500 >> &g

Re: [LyX/master] Fix #10858 compiler warnings.

2018-05-01 Thread Scott Kostyshak
On Sat, Dec 16, 2017 at 04:41:40AM +, Richard Heck wrote: > commit b954f478e31e640f292f865a5c41c65565e5c02a > Author: Richard Heck <rgh...@lyx.org> > Date: Fri Dec 15 23:41:32 2017 -0500 > > Fix #10858 compiler warnings. > --- > src/math

Re: [LyX/master] Fix #10894 compiler warnings.

2017-12-16 Thread Richard Heck
; <rgh...@lyx.org> a écrit : >> >> commit 71005d6c1079637d7127defc372a5aa4d62092b0 >> Author: Richard Heck <rgh...@lyx.org> >> Date: Sat Dec 16 00:59:07 2017 -0500 >> >> Fix #10894 compiler warnings. >> ---

Re: [LyX/master] Fix #10894 compiler warnings.

2017-12-16 Thread Jean-Marc Lasgouttes
d7127defc372a5aa4d62092b0 >> Author: Richard Heck <rgh...@lyx.org> >> Date: Sat Dec 16 00:59:07 2017 -0500 >> >> Fix #10894 compiler warnings. >> --- >> src/insets/InsetCitation.cpp |4 ++-- >> 1 files changed, 2 insertio

Re: [LyX/master] Fix #10894 compiler warnings.

2017-12-16 Thread Richard Heck
:07 2017 -0500 > > Fix #10894 compiler warnings. > --- > src/insets/InsetCitation.cpp |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/insets/InsetCitation.cpp b/src/insets/InsetCitation.cpp > index 8377796..2

Re: [LyX/master] Fix #10863 compiler warnings.

2017-12-16 Thread Richard Heck
;>> Date: Fri Dec 15 23:50:23 2017 -0500 >>> >>> Fix #10863 compiler warnings. >>> --- >>> src/mathed/MathParser.cpp | 12 +--- >>> 1 files changed, 5 insertions(+), 7 deletions(-) >>> >>> diff --git a/src/mathed/MathParser.cpp

Re: [LyX/master] Fix #10894 compiler warnings.

2017-12-16 Thread Jean-Marc Lasgouttes
Le 16 décembre 2017 06:59:12 GMT+01:00, Richard Heck <rgh...@lyx.org> a écrit : >commit 71005d6c1079637d7127defc372a5aa4d62092b0 >Author: Richard Heck <rgh...@lyx.org> >Date: Sat Dec 16 00:59:07 2017 -0500 > >Fix #10894 compiler warnings. >--- > src/insets/

Re: [LyX/master] Fix #10863 compiler warnings.

2017-12-15 Thread Kornel Benko
Am Samstag, 16. Dezember 2017 um 07:03:34, schrieb Pavel Sanda <sa...@lyx.org> > Richard Heck wrote: > > commit b684ec39eaaf7d5b0270bf8109b8e281fa8c5d9f > > Author: Richard Heck <rgh...@lyx.org> > > Date: Fri Dec 15 23:50:23 2017 -0500 > > > > F

Re: [LyX/master] Fix #10863 compiler warnings.

2017-12-15 Thread Pavel Sanda
Richard Heck wrote: > commit b684ec39eaaf7d5b0270bf8109b8e281fa8c5d9f > Author: Richard Heck <rgh...@lyx.org> > Date: Fri Dec 15 23:50:23 2017 -0500 > > Fix #10863 compiler warnings. > --- > src/mathed/MathParser.cpp | 12 +--- > 1 files changed

Re: new compiler warnings in today's master

2016-10-17 Thread Uwe Stöhr
Am 18.10.2016 um 01:08 schrieb Guillaume Munch: Thanks for the report. This should be fixed now. Please tell me if there are still warnings now. Hi Guillaume, many thanks, the warnings went away. regards Uwe p.s. if possible please only cite what you are referring to in your replies. This

Re: new compiler warnings in today's master

2016-10-17 Thread Guillaume Munch
Le 17/10/2016 à 01:49, Uwe Stöhr a écrit : Hi Guillaume, your recent changes introduced these new compiler warning: GuiViewSource.cpp D:\LyXGit\Master\src\TexRow.h(51): warning C4099: 'lyx::TextEntry': type name first seen using 'class' now seen using 'struct' (compiling source file

new compiler warnings in today's master

2016-10-16 Thread Uwe Stöhr
Hi Guillaume, your recent changes introduced these new compiler warning: GuiViewSource.cpp D:\LyXGit\Master\src\TexRow.h(51): warning C4099: 'lyx::TextEntry': type name first seen using 'class' now seen using 'struct' (compiling source file D:\LyXGit\Master\src\frontends\qt4\GuiView.cpp)

Re: 5 more compiler warnings in master

2016-07-02 Thread Guillaume Munch
Le 02/07/2016 20:28, Uwe Stöhr a écrit : I understand the compiler warnings but it is not easy for me to decide if a truncation of values was intended or not. I mean if it is intended one should use int().(…) Hi Uwe, you are right, asking somebody to fix a warning when they are not familiar

Re: 5 more compiler warnings in master

2016-07-02 Thread Richard Heck
On 07/02/2016 02:28 PM, Uwe Stöhr wrote: > Am 02.07.2016 um 20:15 schrieb Richard Heck: > >> All harmless. >> >> In future, you can fix these sorts of warnings easily. > > I understand the compiler warnings but it is not easy for me to decide > if a truncation of v

Re: 5 more compiler warnings in master

2016-07-02 Thread Uwe Stöhr
Am 02.07.2016 um 20:15 schrieb Richard Heck: All harmless. In future, you can fix these sorts of warnings easily. I understand the compiler warnings but it is not easy for me to decide if a truncation of values was intended or not. I mean if it is intended one should use int(). Since

Re: 5 more compiler warnings in master

2016-07-02 Thread Richard Heck
On 07/02/2016 11:42 AM, Uwe Stöhr wrote: > Since I am now able to compile master again with the latest MSVC 2015 > compiler, I get these new warnings: > > D:\LyXGit\Master\src\Changes.cpp(562): warning C4244: 'initializing': > conversion from 'double' to 'int', possible loss of data >

5 more compiler warnings in master

2016-07-02 Thread Uwe Stöhr
Since I am now able to compile master again with the latest MSVC 2015 compiler, I get these new warnings: D:\LyXGit\Master\src\Changes.cpp(562): warning C4244: 'initializing': conversion from 'double' to 'int', possible loss of data [D:\LyXGit\Master\compile-2015\src\LyX.vcxproj]

Re: int64 compiler warnings

2016-03-07 Thread Uwe Stöhr
Am 07.03.2016 um 22:27 schrieb Georg Baum: > - The wanted type is always 64bit => use boost::int64_t for signed values and boost::uint64_t for unsigned values (MSVC does not have std::int64_t or ::it64_t, at least not in the 2010 version) Many thanks for having a look. MSVC 2015 has this:

Re: int64 compiler warnings

2016-03-07 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > Le 07/03/2016 13:21, Alex Vergara Gil a écrit : >> Best way for this is to use native int as integer variables and you >> forget about it, this works even on windows, so instead of int use >> long and thats it: http://en.cppreference.com/w/cpp/language/types > > In

Re: int64 compiler warnings

2016-03-07 Thread Jean-Marc Lasgouttes
Le 07/03/2016 13:59, Jean-Marc Lasgouttes a écrit : Le 07/03/2016 13:21, Alex Vergara Gil a écrit : Best way for this is to use native int as integer variables and you forget about it, this works even on windows, so instead of int use long and thats it:

Re: int64 compiler warnings

2016-03-07 Thread Jean-Marc Lasgouttes
Le 07/03/2016 13:21, Alex Vergara Gil a écrit : Best way for this is to use native int as integer variables and you forget about it, this works even on windows, so instead of int use long and thats it: http://en.cppreference.com/w/cpp/language/types In this case one would want a 64 bit type,

Re: int64 compiler warnings

2016-03-07 Thread Alex Vergara Gil
016 04:14, Uwe Stöhr a écrit : >> Although it is not pressing, I tried to compile LyX as 64bit application >> and this works, except of one error I just reported. >> There are of course some compiler warnings. Fixing them is of course >> also not pressing but maybe it is wo

Re: int64 compiler warnings

2016-03-07 Thread Jean-Marc Lasgouttes
Le 07/03/2016 04:14, Uwe Stöhr a écrit : Although it is not pressing, I tried to compile LyX as 64bit application and this works, except of one error I just reported. There are of course some compiler warnings. Fixing them is of course also not pressing but maybe it is worth it to do it now

int64 compiler warnings

2016-03-06 Thread Uwe Stöhr
Although it is not pressing, I tried to compile LyX as 64bit application and this works, except of one error I just reported. There are of course some compiler warnings. Fixing them is of course also not pressing but maybe it is worth it to do it now for a LyX 2.2 that can be compiled as 64bit

Re: new compiler warnings in master

2015-03-23 Thread Jürgen Spitzmüller
2015-03-22 18:27 GMT+01:00 Georg Baum: This would look like the attached. Before I commit: Any wishes for other names? Perhaps: hyphen - softhyphen slash - breakableslash to make their semantics more explicit. Jürgen Georg

Re: new compiler warnings in master

2015-03-23 Thread Georg Baum
Jürgen Spitzmüller wrote: Perhaps: hyphen - softhyphen slash - breakableslash to make their semantics more explicit. Good idea, I did it like that. Georg

Re: new compiler warnings in master

2015-03-23 Thread Jürgen Spitzmüller
2015-03-22 18:27 GMT+01:00 Georg Baum: > This would look like the attached. Before I commit: Any wishes for other > names? > Perhaps: hyphen -> softhyphen slash -> breakableslash to make their semantics more explicit. Jürgen > > > Georg

Re: new compiler warnings in master

2015-03-23 Thread Georg Baum
Jürgen Spitzmüller wrote: > Perhaps: > hyphen -> softhyphen > slash -> breakableslash > > to make their semantics more explicit. Good idea, I did it like that. Georg

Re: new compiler warnings in master

2015-03-22 Thread Georg Baum
Georg Baum wrote: OK, I will change it. But since the LyX file format really has nothing to do with LaTeX (except for math), I will remove all backslashes and {} pairs from InsetSpecialChar. BTW, LaTeX2E is not the only one which is different. This would look like the attached. Before I

Re: new compiler warnings in master

2015-03-22 Thread Jean-Marc Lasgouttes
Le 22/03/15 18:27, Georg Baum a écrit : Georg Baum wrote: OK, I will change it. But since the LyX file format really has nothing to do with LaTeX (except for math), I will remove all backslashes and {} pairs from InsetSpecialChar. BTW, LaTeX2E is not the only one which is different. This

Re: new compiler warnings in master

2015-03-22 Thread Georg Baum
Georg Baum wrote: > OK, I will change it. But since the LyX file format really has nothing to > do with LaTeX (except for math), I will remove all backslashes and {} > pairs from InsetSpecialChar. BTW, LaTeX2E is not the only one which is > different. This would look like the attached. Before I

Re: new compiler warnings in master

2015-03-22 Thread Jean-Marc Lasgouttes
Le 22/03/15 18:27, Georg Baum a écrit : Georg Baum wrote: OK, I will change it. But since the LyX file format really has nothing to do with LaTeX (except for math), I will remove all backslashes and {} pairs from InsetSpecialChar. BTW, LaTeX2E is not the only one which is different. This

Re: Re: new compiler warnings in master

2015-03-21 Thread José Matos
On Friday 20 March 2015 21:57:43 Georg Baum wrote: OK, I will change it. But since the LyX file format really has nothing to do with LaTeX (except for math), I will remove all backslashes and {} pairs from InsetSpecialChar. BTW, LaTeX2E is not the only one which is different. Georg +1

Re: Re: new compiler warnings in master

2015-03-21 Thread José Matos
On Friday 20 March 2015 21:57:43 Georg Baum wrote: > OK, I will change it. But since the LyX file format really has nothing to do > with LaTeX (except for math), I will remove all backslashes and {} pairs > from InsetSpecialChar. BTW, LaTeX2E is not the only one which is different. > > > Georg

Re: new compiler warnings in master

2015-03-20 Thread Georg Baum
Jean-Marc Lasgouttes wrote: Le 18/03/15 20:27, Georg Baum a écrit : Oops! Thanks for the fix. Why do you think that the LyX file format needs to follow the LaTeX restrictions? IMHO it does not need to match (therefore I did not include the {} in the LyX file format, which is done for other

Re: new compiler warnings in master

2015-03-20 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > Le 18/03/15 20:27, Georg Baum a écrit : >> Oops! Thanks for the fix. >> >> Why do you think that the LyX file format needs to follow the LaTeX >> restrictions? IMHO it does not need to match (therefore I did not include >> the {} in the LyX file format, which is done

Re: new compiler warnings in master

2015-03-18 Thread Jean-Marc Lasgouttes
Le 18/03/2015 08:30, Uwe Stöhr a écrit : Within the last 2 weeks a commit lead to these new compiler warnings: (The same that I constantly report here. I am wondering why the appear so often with recent commits.) It's my fault. I will fix this. JMarc ..\..\..\src\insets

Re: new compiler warnings in master

2015-03-18 Thread Jean-Marc Lasgouttes
Le 18/03/2015 08:30, Uwe Stöhr a écrit : Within the last 2 weeks a commit lead to these new compiler warnings: (The same that I constantly report here. I am wondering why the appear so often with recent commits.) The warnings should be gone now. Please confirm. THis uses integer arithmetic

Re: new compiler warnings in master

2015-03-18 Thread Georg Baum
Jean-Marc Lasgouttes wrote: Georg, note that there was an error for LaTeX 2e (\LaTeX2e instead of \LaTeXe). I fixed it in LaTeX output, but I suspect that we should change the file format too for consistency sake. Oops! Thanks for the fix. Why do you think that the LyX file format needs to

new compiler warnings in master

2015-03-18 Thread Uwe Stöhr
Within the last 2 weeks a commit lead to these new compiler warnings: (The same that I constantly report here. I am wondering why the appear so often with recent commits.) ..\..\..\src\insets\InsetSpecialChar.cpp(57): warning C4244: '=': convesion from 'double' to 'int', possible dataloss

Re: new compiler warnings in master

2015-03-18 Thread Jean-Marc Lasgouttes
Le 18/03/15 20:27, Georg Baum a écrit : Oops! Thanks for the fix. Why do you think that the LyX file format needs to follow the LaTeX restrictions? IMHO it does not need to match (therefore I did not include the {} in the LyX file format, which is done for other special characters). Well, it

Re: new compiler warnings in master

2015-03-18 Thread Abdelrazak Younes
On 18/03/2015 11:39, Jean-Marc Lasgouttes wrote: Le 18/03/2015 08:30, Uwe Stöhr a écrit : Within the last 2 weeks a commit lead to these new compiler warnings: (The same that I constantly report here. I am wondering why the appear so often with recent commits.) The warnings should be gone now

new compiler warnings in master

2015-03-18 Thread Uwe Stöhr
Within the last 2 weeks a commit lead to these new compiler warnings: (The same that I constantly report here. I am wondering why the appear so often with recent commits.) ..\..\..\src\insets\InsetSpecialChar.cpp(57): warning C4244: '=': convesion from 'double' to 'int', possible dataloss

Re: new compiler warnings in master

2015-03-18 Thread Jean-Marc Lasgouttes
Le 18/03/2015 08:30, Uwe Stöhr a écrit : Within the last 2 weeks a commit lead to these new compiler warnings: (The same that I constantly report here. I am wondering why the appear so often with recent commits.) It's my fault. I will fix this. JMarc ..\..\..\src\insets

Re: new compiler warnings in master

2015-03-18 Thread Jean-Marc Lasgouttes
Le 18/03/2015 08:30, Uwe Stöhr a écrit : Within the last 2 weeks a commit lead to these new compiler warnings: (The same that I constantly report here. I am wondering why the appear so often with recent commits.) The warnings should be gone now. Please confirm. THis uses integer arithmetic

Re: new compiler warnings in master

2015-03-18 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > Georg, note that there was an error for LaTeX 2e (\LaTeX2e instead of > \LaTeXe). I fixed it in LaTeX output, but I suspect that we should > change the file format too for consistency sake. Oops! Thanks for the fix. Why do you think that the LyX file format needs

Re: new compiler warnings in master

2015-03-18 Thread Jean-Marc Lasgouttes
Le 18/03/15 20:27, Georg Baum a écrit : Oops! Thanks for the fix. Why do you think that the LyX file format needs to follow the LaTeX restrictions? IMHO it does not need to match (therefore I did not include the {} in the LyX file format, which is done for other special characters). Well, it

Re: new compiler warnings in master

2015-03-18 Thread Abdelrazak Younes
On 18/03/2015 11:39, Jean-Marc Lasgouttes wrote: Le 18/03/2015 08:30, Uwe Stöhr a écrit : Within the last 2 weeks a commit lead to these new compiler warnings: (The same that I constantly report here. I am wondering why the appear so often with recent commits.) The warnings should be gone now

[parch] silence boost compiler warnings

2014-04-01 Thread Jürgen Spitzmüller
The attached patch gets rid of these annoying gcc 4.8 compiler warnings pointing to boost (usued typedefs etc.). I have collected the fixed both from boost itself [1] and from the patchset used by Fedora for their boost RPMs [2]. I propose to commit this to 2.2-staging. The compiler noise

Re: [parch] silence boost compiler warnings

2014-04-01 Thread Vincent van Ravesteijn
On Tue, Apr 1, 2014 at 11:00 AM, Jürgen Spitzmüller sp...@lyx.org wrote: The attached patch gets rid of these annoying gcc 4.8 compiler warnings pointing to boost (usued typedefs etc.). I have collected the fixed both from boost itself [1] and from the patchset used by Fedora for their boost

Re: [parch] silence boost compiler warnings

2014-04-01 Thread Jean-Marc Lasgouttes
01/04/2014 11:07, Vincent van Ravesteijn: On Tue, Apr 1, 2014 at 11:00 AM, Jürgen Spitzmüller sp...@lyx.org mailto:sp...@lyx.org wrote: I propose to commit this to 2.2-staging. The compiler noise is really annoying. An alternative is an update of our boost sources. These warnings are

Re: [parch] silence boost compiler warnings

2014-04-01 Thread Vincent van Ravesteijn
On Tue, Apr 1, 2014 at 11:28 AM, Jean-Marc Lasgouttes lasgout...@lyx.orgwrote: 01/04/2014 11:07, Vincent van Ravesteijn: On Tue, Apr 1, 2014 at 11:00 AM, Jürgen Spitzmüller sp...@lyx.org mailto:sp...@lyx.org wrote: I propose to commit this to 2.2-staging. The compiler noise is

Re: [parch] silence boost compiler warnings

2014-04-01 Thread Jürgen Spitzmüller
2014-04-01 11:41 GMT+02:00 Vincent van Ravesteijn: What about scheduling Juergen's patch to some 2.1.x release (maybe not 2.1.1). JMarc Looks sensible. I propose I apply this to my own working branch and see if problems arise. Then we could commit it early in the 2.1.2 or 2.1.3 cycle (if

Re: [parch] silence boost compiler warnings

2014-04-01 Thread Vincent van Ravesteijn
On Tue, Apr 1, 2014 at 12:14 PM, Jürgen Spitzmüller sp...@lyx.org wrote: 2014-04-01 11:41 GMT+02:00 Vincent van Ravesteijn: What about scheduling Juergen's patch to some 2.1.x release (maybe not 2.1.1). JMarc Looks sensible. I propose I apply this to my own working branch and see if

Re: [parch] silence boost compiler warnings

2014-04-01 Thread Jürgen Spitzmüller
2014-04-01 12:42 GMT+02:00 Vincent van Ravesteijn: Wouldn't git log not be enough to see which patches we applied ? Practically for sure. I was just unsure what the policy is with embedded 3rd-party code. Jürgen Vincent

[parch] silence boost compiler warnings

2014-04-01 Thread Jürgen Spitzmüller
The attached patch gets rid of these annoying gcc 4.8 compiler warnings pointing to boost (usued typedefs etc.). I have collected the fixed both from boost itself [1] and from the patchset used by Fedora for their boost RPMs [2]. I propose to commit this to 2.2-staging. The compiler noise

Re: [parch] silence boost compiler warnings

2014-04-01 Thread Vincent van Ravesteijn
On Tue, Apr 1, 2014 at 11:00 AM, Jürgen Spitzmüller <sp...@lyx.org> wrote: > The attached patch gets rid of these annoying gcc 4.8 compiler warnings > pointing to boost (usued typedefs etc.). I have collected the fixed both > from boost itself [1] and from the patchset

Re: [parch] silence boost compiler warnings

2014-04-01 Thread Jean-Marc Lasgouttes
01/04/2014 11:07, Vincent van Ravesteijn: On Tue, Apr 1, 2014 at 11:00 AM, Jürgen Spitzmüller > wrote: I propose to commit this to 2.2-staging. The compiler noise is really annoying. An alternative is an update of our boost sources. These warnings

Re: [parch] silence boost compiler warnings

2014-04-01 Thread Vincent van Ravesteijn
On Tue, Apr 1, 2014 at 11:28 AM, Jean-Marc Lasgouttes wrote: > 01/04/2014 11:07, Vincent van Ravesteijn: > >> On Tue, Apr 1, 2014 at 11:00 AM, Jürgen Spitzmüller > > wrote: >> I propose to commit this to 2.2-staging. The compiler noise

Re: [parch] silence boost compiler warnings

2014-04-01 Thread Jürgen Spitzmüller
2014-04-01 11:41 GMT+02:00 Vincent van Ravesteijn: > What about scheduling Juergen's patch to some 2.1.x release (maybe not >> 2.1.1). >> >> JMarc >> > > Looks sensible. > I propose I apply this to my own working branch and see if problems arise. Then we could commit it early in the 2.1.2 or

Re: [parch] silence boost compiler warnings

2014-04-01 Thread Vincent van Ravesteijn
On Tue, Apr 1, 2014 at 12:14 PM, Jürgen Spitzmüller wrote: > 2014-04-01 11:41 GMT+02:00 Vincent van Ravesteijn: > > What about scheduling Juergen's patch to some 2.1.x release (maybe not >>> 2.1.1). >>> >>> JMarc >>> >> >> Looks sensible. >> > > I propose I apply this to my own

Re: [parch] silence boost compiler warnings

2014-04-01 Thread Jürgen Spitzmüller
2014-04-01 12:42 GMT+02:00 Vincent van Ravesteijn: > Wouldn't "git log" not be enough to see which patches we applied ? > Practically for sure. I was just unsure what the policy is with embedded 3rd-party code. Jürgen > > Vincent >

Re: compiler warnings in trunk

2011-04-10 Thread Richard Heck
On 04/09/2011 06:46 PM, Julien Rioux wrote: I always saw those two warnings (paraphrased): Lexer.cpp:197 anonymous may be used uninitialized Server.cpp:1018 ignoring return value of write(...) The Lexer one has been there forever. I'm not sure why we get it, and I'm certainly not sure why

Re: compiler warnings in trunk

2011-04-10 Thread Andre Poenitz
On Sun, Apr 10, 2011 at 10:31:47AM -0400, Richard Heck wrote: On 04/09/2011 06:46 PM, Julien Rioux wrote: I always saw those two warnings (paraphrased): Lexer.cpp:197 anonymous may be used uninitialized void Lexer::Pimpl::verifyTable() { // [...] if (table - this

Re: compiler warnings in trunk

2011-04-10 Thread Julien Rioux
On 10/04/2011 11:12 AM, Andre Poenitz wrote: On Sun, Apr 10, 2011 at 10:31:47AM -0400, Richard Heck wrote: On 04/09/2011 06:46 PM, Julien Rioux wrote: I always saw those two warnings (paraphrased): Lexer.cpp:197anonymous may be used uninitialized void Lexer::Pimpl::verifyTable() { //

Re: compiler warnings in trunk

2011-04-10 Thread Richard Heck
On 04/09/2011 06:46 PM, Julien Rioux wrote: I always saw those two warnings (paraphrased): Lexer.cpp:197 may be used uninitialized Server.cpp:1018 ignoring return value of write(...) The Lexer one has been there forever. I'm not sure why we get it, and I'm certainly not sure why removing the

Re: compiler warnings in trunk

2011-04-10 Thread Andre Poenitz
On Sun, Apr 10, 2011 at 10:31:47AM -0400, Richard Heck wrote: > On 04/09/2011 06:46 PM, Julien Rioux wrote: > >I always saw those two warnings (paraphrased): > >Lexer.cpp:197 may be used uninitialized void Lexer::Pimpl::verifyTable() { // [...] if (table <- this

Re: compiler warnings in trunk

2011-04-10 Thread Julien Rioux
On 10/04/2011 11:12 AM, Andre Poenitz wrote: On Sun, Apr 10, 2011 at 10:31:47AM -0400, Richard Heck wrote: On 04/09/2011 06:46 PM, Julien Rioux wrote: I always saw those two warnings (paraphrased): Lexer.cpp:197 may be used uninitialized void Lexer::Pimpl::verifyTable() { // [...]

compiler warnings in trunk

2011-04-09 Thread Julien Rioux
I always saw those two warnings (paraphrased): Lexer.cpp:197 anonymous may be used uninitialized Server.cpp:1018 ignoring return value of write(...) I have looked into these two warnings to learn a bit more on cpp. For the first one, I could remove the warning by removing the anonymous

compiler warnings in trunk

2011-04-09 Thread Julien Rioux
I always saw those two warnings (paraphrased): Lexer.cpp:197 may be used uninitialized Server.cpp:1018 ignoring return value of write(...) I have looked into these two warnings to learn a bit more on cpp. For the first one, I could remove the warning by removing the anonymous namespace, but I

New Compiler Warnings...

2010-12-20 Thread Stephan Witt
... I get here. * CompileC src/mathed/MathData.cpp normal i386 c++ com.apple.compilers.gcc.4_2 src/mathed/MathData.cpp: In member function 'void lyx::MathData::detachMacroParameters(lyx::DocIterator*, size_t)': src/mathed/MathData.cpp:508: warning: negative integer implicitly converted to

New Compiler Warnings...

2010-12-20 Thread Stephan Witt
... I get here. * CompileC src/mathed/MathData.cpp normal i386 c++ com.apple.compilers.gcc.4_2 src/mathed/MathData.cpp: In member function 'void lyx::MathData::detachMacroParameters(lyx::DocIterator*, size_t)': src/mathed/MathData.cpp:508: warning: negative integer implicitly converted to

Re: Fix compiler warnings in pedantic mode

2010-12-16 Thread Abdelrazak Younes
On 12/16/2010 07:25 AM, Stephan Witt wrote: Am 16.12.2010 um 00:44 schrieb Pavel Sanda: Stephan Witt wrote: Index: src/frontends/Clipboard.h === --- src/frontends/Clipboard.h (Revision 36891) +++

Re: Fix compiler warnings in pedantic mode

2010-12-16 Thread Stephan Witt
Am 16.12.2010 um 09:47 schrieb Abdelrazak Younes: On 12/16/2010 07:25 AM, Stephan Witt wrote: Am 16.12.2010 um 00:44 schrieb Pavel Sanda: Stephan Witt wrote: Index: src/frontends/Clipboard.h === ---

Re: Fix compiler warnings in pedantic mode

2010-12-16 Thread Abdelrazak Younes
On 12/16/2010 07:25 AM, Stephan Witt wrote: Am 16.12.2010 um 00:44 schrieb Pavel Sanda: Stephan Witt wrote: Index: src/frontends/Clipboard.h === --- src/frontends/Clipboard.h (Revision 36891) +++

Re: Fix compiler warnings in pedantic mode

2010-12-16 Thread Stephan Witt
Am 16.12.2010 um 09:47 schrieb Abdelrazak Younes: > On 12/16/2010 07:25 AM, Stephan Witt wrote: >> Am 16.12.2010 um 00:44 schrieb Pavel Sanda: >> >> >>> Stephan Witt wrote: >>> Index: src/frontends/Clipboard.h ===

Fix compiler warnings in pedantic mode

2010-12-15 Thread Stephan Witt
I tried to compile LyX with -pedantic option. Most warnings are easy to fix. See the attached patch. But one isn't that easy: src/frontends/qt4/GuiProgressView.cpp: In member function 'void lyx::frontend::GuiProgressView::debugSelectionChanged()': src/frontends/qt4/GuiProgressView.cpp:149:

Re: Fix compiler warnings in pedantic mode

2010-12-15 Thread Jean-Marc Lasgouttes
Le 15/12/2010 22:36, Stephan Witt a écrit : I tried to compile LyX with -pedantic option. Most warnings are easy to fix. See the attached patch. The patch looks correct, except for some of the casts in .m files (but they can probably not be avoided). But one isn't that easy:

Re: Fix compiler warnings in pedantic mode

2010-12-15 Thread Enrico Forestieri
On Wed, Dec 15, 2010 at 11:16:34PM +0100, Jean-Marc Lasgouttes wrote: Le 15/12/2010 22:36, Stephan Witt a écrit : I tried to compile LyX with -pedantic option. Most warnings are easy to fix. See the attached patch. The patch looks correct, except for some of the casts in .m files (but

Re: Fix compiler warnings in pedantic mode

2010-12-15 Thread Pavel Sanda
Stephan Witt wrote: Index: src/frontends/Clipboard.h === --- src/frontends/Clipboard.h (Revision 36891) +++ src/frontends/Clipboard.h (Arbeitskopie) @@ -39,7 +39,7 @@ LinkBackGraphicsType,

Re: Fix compiler warnings in pedantic mode

2010-12-15 Thread Stephan Witt
Am 16.12.2010 um 00:44 schrieb Pavel Sanda: Stephan Witt wrote: Index: src/frontends/Clipboard.h === --- src/frontends/Clipboard.h(Revision 36891) +++ src/frontends/Clipboard.h(Arbeitskopie) @@ -39,7 +39,7 @@

Re: Fix compiler warnings in pedantic mode

2010-12-15 Thread Stephan Witt
Am 15.12.2010 um 23:16 schrieb Jean-Marc Lasgouttes: Le 15/12/2010 22:36, Stephan Witt a écrit : I tried to compile LyX with -pedantic option. Most warnings are easy to fix. See the attached patch. The patch looks correct, except for some of the casts in .m files (but they can probably

Fix compiler warnings in pedantic mode

2010-12-15 Thread Stephan Witt
I tried to compile LyX with -pedantic option. Most warnings are easy to fix. See the attached patch. But one isn't that easy: src/frontends/qt4/GuiProgressView.cpp: In member function 'void lyx::frontend::GuiProgressView::debugSelectionChanged()': src/frontends/qt4/GuiProgressView.cpp:149:

Re: Fix compiler warnings in pedantic mode

2010-12-15 Thread Jean-Marc Lasgouttes
Le 15/12/2010 22:36, Stephan Witt a écrit : I tried to compile LyX with -pedantic option. Most warnings are easy to fix. See the attached patch. The patch looks correct, except for some of the casts in .m files (but they can probably not be avoided). But one isn't that easy:

Re: Fix compiler warnings in pedantic mode

2010-12-15 Thread Enrico Forestieri
On Wed, Dec 15, 2010 at 11:16:34PM +0100, Jean-Marc Lasgouttes wrote: > Le 15/12/2010 22:36, Stephan Witt a écrit : > >I tried to compile LyX with -pedantic option. > > > >Most warnings are easy to fix. See the attached patch. > > The patch looks correct, except for some of the casts in .m files

Re: Fix compiler warnings in pedantic mode

2010-12-15 Thread Pavel Sanda
Stephan Witt wrote: > Index: src/frontends/Clipboard.h > === > --- src/frontends/Clipboard.h (Revision 36891) > +++ src/frontends/Clipboard.h (Arbeitskopie) > @@ -39,7 +39,7 @@ > LinkBackGraphicsType, >

Re: Fix compiler warnings in pedantic mode

2010-12-15 Thread Stephan Witt
Am 16.12.2010 um 00:44 schrieb Pavel Sanda: > Stephan Witt wrote: >> Index: src/frontends/Clipboard.h >> === >> --- src/frontends/Clipboard.h(Revision 36891) >> +++ src/frontends/Clipboard.h(Arbeitskopie) >> @@ -39,7

  1   2   3   >