Re: Warning: dvipng failed to generate images from lyxpreviewSZhsFp.dvi... fallback to legacy method

2025-05-21 Thread José Matos
On Tue, 2025-05-20 at 19:05 +0200, Enrico Forestieri wrote: > I don't know what to do. On the one hand the attached patch solves the > issue for me with version 1.15, but I don't have any info on the return > codes from dvipng and it very possible that that return code (136) is > not specific to

Re: Warning: dvipng failed to generate images from lyxpreviewSZhsFp.dvi... fallback to legacy method

2025-05-20 Thread Enrico Forestieri
On Mon, May 19, 2025 at 11:39:32PM +0200, Enrico Forestieri wrote: On Mon, May 19, 2025 at 02:44:06PM +0200, Jean-Marc Lasgouttes wrote: Dear all, With UserGuide, I get a lot of output concerning previews: Warning: dvipng failed to generate images from lyxpreviewSZhsFp.dvi... fallback to

Re: Warning: dvipng failed to generate images from lyxpreviewSZhsFp.dvi... fallback to legacy method

2025-05-19 Thread Enrico Forestieri
On Mon, May 19, 2025 at 02:44:06PM +0200, Jean-Marc Lasgouttes wrote: Dear all, With UserGuide, I get a lot of output concerning previews: Warning: dvipng failed to generate images from lyxpreviewSZhsFp.dvi... fallback to legacy method Warning: epstopdf failed on page 1, file

Warning: dvipng failed to generate images from lyxpreviewSZhsFp.dvi... fallback to legacy method

2025-05-19 Thread Jean-Marc Lasgouttes
Dear all, With UserGuide, I get a lot of output concerning previews: Warning: dvipng failed to generate images from lyxpreviewSZhsFp.dvi... fallback to legacy method Warning: epstopdf failed on page 1, file lyxpreviewSZhsFp.001 Warning: epstopdf failed on page 2, file lyxpreviewSZhsFp.002

Deprecated warning

2025-05-19 Thread Kornel Benko
Using external hunspell, I see these warnings /usr2/src/lyx/lyx-git/src/HunspellChecker.cpp:372:9: warning: 'spell' is deprecated [-Wdeprecated-declarations] /usr2/src/lyx/lyx-git/src/HunspellChecker.cpp:434:35: warning: 'suggest' is deprecated [-Wdeprecated-declarations] /

Re: Compilation warning on current master

2025-05-04 Thread Scott Kostyshak
On Sun, May 04, 2025 at 12:20:57PM +0200, Jürgen Spitzmüller wrote: > Am Sonntag, dem 04.05.2025 um 12:13 +0200 schrieb Scott Kostyshak: > > I now get (with -Werror): > > > > /home/scott/lyxbuilds/master- > > master/repo/src/insets/InsetRef.cpp:1005:55: error: left operand of > > comma operator ha

Re: Compilation warning on current master

2025-05-04 Thread Jürgen Spitzmüller
Am Sonntag, dem 04.05.2025 um 12:13 +0200 schrieb Scott Kostyshak: > I now get (with -Werror): > > /home/scott/lyxbuilds/master- > master/repo/src/insets/InsetRef.cpp:1005:55: error: left operand of > comma operator has no effect [-Werror,-Wunused-value] >  1005 | || (cmd == "forma

Compilation warning on current master

2025-05-04 Thread Scott Kostyshak
I now get (with -Werror): /home/scott/lyxbuilds/master-master/repo/src/insets/InsetRef.cpp:1005:55: error: left operand of comma operator has no effect [-Werror,-Wunused-value] 1005 | || (cmd == "formatted" && !(buffer().masterParams().xref_package, "prettyref")) |

Re: biblatex warning about loading csquotes

2025-04-05 Thread Scott Kostyshak
On Sat, Apr 05, 2025 at 01:51:57PM +0200, Jürgen Spitzmüller wrote: > Am Samstag, dem 05.04.2025 um 11:49 +0200 schrieb Scott Kostyshak: > > On one of my documents I get the following warning: > > > >   Package biblatex Warning: 'babel/polyglossia' dete

Re: biblatex warning about loading csquotes

2025-04-05 Thread Jürgen Spitzmüller
Am Samstag, dem 05.04.2025 um 11:49 +0200 schrieb Scott Kostyshak: > On one of my documents I get the following warning: > >   Package biblatex Warning: 'babel/polyglossia' detected but > 'csquotes' missing. > > Should we load csquotes whenever using bibl

biblatex warning about loading csquotes

2025-04-05 Thread Scott Kostyshak
On one of my documents I get the following warning: Package biblatex Warning: 'babel/polyglossia' detected but 'csquotes' missing. Should we load csquotes whenever using biblatex and either babel or polyglossia? I can make a minimal example in case it would be useful. S

Re: Python warning in lyx2lyx

2025-03-03 Thread Jürgen Spitzmüller
Am Montag, dem 03.03.2025 um 10:08 + schrieb José Matos: > One solution is, just like Jürgen did, to escape the backslash > itself: > "r@{\\extracolsep{0pt}" > > The other option is to change the string to be raw, by prefixing an r > before the > string starts, where backslashes are normal cha

Re: Python warning in lyx2lyx

2025-03-03 Thread José Matos
On Sat, 2025-03-01 at 21:49 +0100, Jean-Marc Lasgouttes wrote: > /home/jean-marc/src/lyx/master/lib/lyx2lyx/lyx_2_5.py:2464: > SyntaxWarning: invalid escape sequence '\e' >    cmd = " special=\"" + scmd + "r@{\extracolsep{0pt}" + decpoint + "}" > + scmd2 + "l\">" > > I cannot reproduce it for so

Re: Python warning in lyx2lyx

2025-03-01 Thread Jürgen Spitzmüller
Am Samstag, dem 01.03.2025 um 21:49 +0100 schrieb Jean-Marc Lasgouttes: > While playing with master, I got the following warning: > > /home/jean-marc/src/lyx/master/lib/lyx2lyx/lyx_2_5.py:2464: > SyntaxWarning: invalid escape sequence '\e' >    cmd = " special=\&q

Python warning in lyx2lyx

2025-03-01 Thread Jean-Marc Lasgouttes
Hello, While playing with master, I got the following warning: /home/jean-marc/src/lyx/master/lib/lyx2lyx/lyx_2_5.py:2464: SyntaxWarning: invalid escape sequence '\e' cmd = " special=\"" + scmd + "r@{\extracolsep{0pt}" + decpoint + "}" + sc

Re: [LyX/master] Address Qt 6.7 deprecation warning

2024-10-21 Thread Jürgen Spitzmüller
Am Montag, dem 21.10.2024 um 17:15 +0200 schrieb Jean-Marc Lasgouttes: > So I can change the guard to check for Qt 6.5? It is better to have > precise versions so that we know what #ifdefs can go when José forces > us to require Qt 6.6 ;) Yes, please go ahead. -- Jürgen -- lyx-devel mailing li

Re: [LyX/master] Address Qt 6.7 deprecation warning

2024-10-21 Thread Jean-Marc Lasgouttes
Le 20/10/2024 à 08:04, Jürgen Spitzmüller a écrit : Am Samstag, dem 19.10.2024 um 19:24 +0200 schrieb Jean-Marc Lasgouttes: It seems to me that this is usable from Qt 6.5: https://www.qt.io/blog/unifying-qttimespec-within-qtimezone Or is it something else? Yes, looks like it. The deprecation

Re: [LyX/master] Address Qt 6.7 deprecation warning

2024-10-19 Thread Jürgen Spitzmüller
Am Samstag, dem 19.10.2024 um 19:24 +0200 schrieb Jean-Marc Lasgouttes: > It seems to me that this is usable from Qt 6.5: > https://www.qt.io/blog/unifying-qttimespec-within-qtimezone > > Or is it something else? Yes, looks like it. The deprecation is only from 6.7 though. -- Jürgen -- lyx-dev

Re: [LyX/master] Address Qt 6.7 deprecation warning

2024-10-19 Thread Jean-Marc Lasgouttes
Le 19/10/2024 à 10:04, Juergen Spitzmueller a écrit : commit 4d51a05ce401bd1ad7c2bae5b6aeb7a2b494f35a Author: Juergen Spitzmueller Date: Sat Oct 19 09:57:24 2024 +0200 Address Qt 6.7 deprecation warning See https://doc.qt.io/qt-6.7/qdatetime-obsolete.html#setTimeSpec It

Re: Warning in running 2.4.x in Wayland

2024-07-30 Thread José Matos
On Sat, 2024-07-27 at 16:14 +0100, José Matos wrote: > I am not sure if this is from LyX or from KDE. Followup to this: This issue is/seems to be from KDE from calling okular through xgd- open. Best regards, -- José Abílio -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/m

Warning in running 2.4.x in Wayland

2024-07-27 Thread José Matos
While running 2.4.x, built over the latest commit, in Wayland I got this warning: kf.windowsystem: static int KX11Extras::currentDesktop() may only be used on X11 I am not sure if this is from LyX or from KDE. I leave this here just for reference. Everything seems to be working... I have

Re: [LyX/master] Squash gcc warning.

2024-07-24 Thread Richard Kimberly Heck
On 7/24/24 1:56 PM, Pavel Sanda wrote: On Wed, Jul 24, 2024 at 05:55:21PM +, Pavel Sanda wrote: commit 307d59cdb9a51105404d8e82a48a6c619c9df0f7 Author: Pavel Sanda Date: Wed Jul 24 19:55:05 2024 +0200 Squash gcc warning. --- src/insets/InsetGraphicsParams.cpp | 2 +- 1 file

Re: [LyX/master] Squash gcc warning.

2024-07-24 Thread Pavel Sanda
On Wed, Jul 24, 2024 at 05:55:21PM +, Pavel Sanda wrote: > commit 307d59cdb9a51105404d8e82a48a6c619c9df0f7 > Author: Pavel Sanda > Date: Wed Jul 24 19:55:05 2024 +0200 > > Squash gcc warning. > --- > src/insets/InsetGraphicsParams.cpp | 2 +- > 1 file ch

Re: Compilation warning

2024-07-15 Thread Jean-Marc Lasgouttes
Le 12/07/2024 à 21:25, Richard Kimberly Heck a écrit : On 7/12/24 11:13 AM, Jean-Marc Lasgouttes wrote: Le 12/07/2024 à 17:02, Jürgen Spitzmüller a écrit : Am Freitag, dem 12.07.2024 um 16:18 +0200 schrieb Jean-Marc Lasgouttes: It is the fault of autoconf 2.72, actually. Try the patch below.

Re: Compilation warning

2024-07-12 Thread Richard Kimberly Heck
On 7/12/24 11:13 AM, Jean-Marc Lasgouttes wrote: Le 12/07/2024 à 17:02, Jürgen Spitzmüller a écrit : Am Freitag, dem 12.07.2024 um 16:18 +0200 schrieb Jean-Marc Lasgouttes: It is the fault of autoconf 2.72, actually. Try the patch below. Thanks, this works! Very good. It is in master now.

Re: Compilation warning

2024-07-12 Thread Jean-Marc Lasgouttes
Le 12/07/2024 à 17:02, Jürgen Spitzmüller a écrit : Am Freitag, dem 12.07.2024 um 16:18 +0200 schrieb Jean-Marc Lasgouttes: It is the fault of autoconf 2.72, actually. Try the patch below. Thanks, this works! Very good. It is in master now. Riki, this is candidate for branch. A workaround

Re: Compilation warning

2024-07-12 Thread Jürgen Spitzmüller
Am Freitag, dem 12.07.2024 um 16:18 +0200 schrieb Jean-Marc Lasgouttes: > It is the fault of autoconf 2.72, actually. Try the patch below. Thanks, this works! -- Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel

Re: Compilation warning

2024-07-12 Thread Jean-Marc Lasgouttes
Le 12/07/2024 à 15:56, Jean-Marc Lasgouttes a écrit : Le 12/07/2024 à 15:47, Jürgen Spitzmüller a écrit : Am Freitag, dem 12.07.2024 um 15:28 +0200 schrieb Jean-Marc Lasgouttes: Do you see a mention of grep and egrep in the configure output? yes: checking for grep that handles long lines an

Re: Compilation warning

2024-07-12 Thread Jean-Marc Lasgouttes
Le 12/07/2024 à 15:47, Jürgen Spitzmüller a écrit : Am Freitag, dem 12.07.2024 um 15:28 +0200 schrieb Jean-Marc Lasgouttes: Do you see a mention of grep and egrep in the configure output? yes: checking for grep that handles long lines and -e... /usr/bin/grep I get nothing like the above, b

Re: Compilation warning

2024-07-12 Thread Jürgen Spitzmüller
Am Freitag, dem 12.07.2024 um 15:28 +0200 schrieb Jean-Marc Lasgouttes: > Do you see a mention of grep and egrep in the configure output? yes: > checking for grep that handles long lines and -e... /usr/bin/grep I get nothing like the above, but > checking for egrep... /usr/bin/grep -E checking

Re: Compilation warning

2024-07-12 Thread Jean-Marc Lasgouttes
Le 12/07/2024 à 14:16, Jürgen Spitzmüller a écrit : Am Freitag, dem 12.07.2024 um 11:31 +0200 schrieb Pavel Sanda: Can you share the exact autogen/configure sequence and params so I can try to reproduce your workflow? ./autogen.sh ./configure --enable-build-type=rel The issue shows up in the

Re: Compilation warning

2024-07-12 Thread Jürgen Spitzmüller
Am Freitag, dem 12.07.2024 um 11:31 +0200 schrieb Pavel Sanda: > Can you share the exact autogen/configure sequence and params so I > can try to reproduce your workflow? ./autogen.sh ./configure --enable-build-type=rel The issue shows up in the make install step. -- Jürgen -- lyx-devel mailing

Re: Compilation warning

2024-07-12 Thread Pavel Sanda
On Fri, Jul 12, 2024 at 09:35:23AM +0200, Jürgen Spitzmüller wrote: > Am Donnerstag, dem 11.07.2024 um 17:53 +0200 schrieb Pavel Sanda: > > What does line EGREP in your config.log says? > > Here I see EGREP='/usr/bin/grep -E' > > Don't have this. I have in config.log > > configure:9394: checking

Re: Compilation warning

2024-07-12 Thread Jürgen Spitzmüller
Am Donnerstag, dem 11.07.2024 um 17:53 +0200 schrieb Pavel Sanda: > What does line EGREP in your config.log says? > Here I see EGREP='/usr/bin/grep -E' Don't have this. I have in config.log configure:9394: checking for egrep -e configure:9524: result: /usr/bin/grep -E and ac_cv_path_EGREP_TRADI

Re: Compilation warning

2024-07-11 Thread Pavel Sanda
On Thu, Jul 11, 2024 at 01:51:03PM +0200, Jürgen Spitzmüller wrote: > If I understand the scrips correctly (which I very likely do not) the > command that is missing here is egrep. What does line EGREP in your config.log says? Here I see EGREP='/usr/bin/grep -E' Pavel -- lyx-devel mailing list l

Compilation warning

2024-07-11 Thread Jürgen Spitzmüller
When compiling stable (probably also master), I am getting this: [...] %28LyXified%29.lyx examples/Example_%28raw%29.lyx examples/Welcome.lyx templates/EPS_%28cropped%29.lyx templates/PDF_%28cropped%29.lyx templates/README.new_templates; do \ if -q "^origin " "/usr/local/share/lyx/$i"

Re: Python warning: lyx_pot.py:607: SyntaxWarning: invalid escape sequence '\w'

2024-06-09 Thread Scott Kostyshak
ch hopefully would stop the build). > > > According to the man page there is no space in between, it should be - > Werror or even -We. > > But just like for C++ code I prefer for the warning to be a warning. > :-) Fair enough ;) > > I haven't tested, but would the way

Re: Python warning: lyx_pot.py:607: SyntaxWarning: invalid escape sequence '\w'

2024-06-08 Thread José Matos
be - Werror or even -We. But just like for C++ code I prefer for the warning to be a warning. :-) > I haven't tested, but would the way to ask our build systems to use > the flag be to use the PYTHON environment variable? (./configure -- > help tells me this is used)? Please no, I

Re: Python warning: lyx_pot.py:607: SyntaxWarning: invalid escape sequence '\w'

2024-06-08 Thread Scott Kostyshak
On Sat, Jun 08, 2024 at 08:17:09AM GMT, José Matos wrote: > On Sat, 2024-06-08 at 00:15 -0400, Scott Kostyshak wrote: > > In the attached patch, I just put a 'r' in front of the string inside > > re.compile(). It seems to make Python happy. Is it OK to commit? > > > > Scott > > Yes, that is the r

Re: Python warning: lyx_pot.py:607: SyntaxWarning: invalid escape sequence '\w'

2024-06-08 Thread José Matos
On Sat, 2024-06-08 at 00:15 -0400, Scott Kostyshak wrote: > In the attached patch, I just put a 'r' in front of the string inside > re.compile(). It seems to make Python happy. Is it OK to commit? > > Scott Yes, that is the right fix. :-) Either that or doubling the backslash but IMHO your solut

Python warning: lyx_pot.py:607: SyntaxWarning: invalid escape sequence '\w'

2024-06-07 Thread Scott Kostyshak
I see several warnings on a newer system (with Python 3.12.3) along the following lines: [ 7%] /usr/bin/python3 /home/scott/lyxbuilds/master-master/repo/po/lyx_pot.py -b /home/scott/lyxbuilds/master-master/repo -o /home/scott/lyxbuilds/master-master/CMakeBuild/po/examples_templates_l10n.pot -

Re: [LyX/master] Address Qt 6.7 deprecation warning

2024-05-20 Thread Richard Kimberly Heck
On 5/20/24 08:02, Jürgen Spitzmüller wrote: Am Montag, dem 20.05.2024 um 10:37 +0200 schrieb Jean-Marc Lasgouttes: What about putting it in  2.4.1? Yes, why not. Currently it is just another annoying warning, though. OK for 2.4.1. Riki -- lyx-devel mailing list lyx-devel@lists.lyx.org

Re: [LyX/master] Address Qt 6.7 deprecation warning

2024-05-20 Thread Jürgen Spitzmüller
Am Montag, dem 20.05.2024 um 14:09 +0200 schrieb Jean-Marc Lasgouttes: > > Yes, why not. Currently it is just another annoying warning, > > though. > > Yes, but eventually it will bite. And we know that 2.4 will stay for > 2+ years. Good point. Riki? -- Jürgen -- lyx-d

Re: [LyX/master] Address Qt 6.7 deprecation warning

2024-05-20 Thread Jean-Marc Lasgouttes
Le 20/05/2024 à 14:02, Jürgen Spitzmüller a écrit : Am Montag, dem 20.05.2024 um 10:37 +0200 schrieb Jean-Marc Lasgouttes: What about putting it in  2.4.1? Yes, why not. Currently it is just another annoying warning, though. Yes, but eventually it will bite. And we know that 2.4 will stay

Re: [LyX/master] Address Qt 6.7 deprecation warning

2024-05-20 Thread Jürgen Spitzmüller
Am Montag, dem 20.05.2024 um 10:37 +0200 schrieb Jean-Marc Lasgouttes: > What about putting it in  2.4.1? Yes, why not. Currently it is just another annoying warning, though. -- Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel

Re: [LyX/master] Address Qt 6.7 deprecation warning

2024-05-20 Thread Jean-Marc Lasgouttes
What about putting it in 2.4.1? JMarc Le 20 mai 2024 09:49:57 GMT+02:00, Juergen Spitzmueller a écrit  : >commit 44633c7f729e79ea023f2a5ccbbdd0002411619f >Author: Juergen Spitzmueller >Date: Mon May 20 09:49:10 2024 +0200 > >Address Qt 6.7 deprecation warning >---

Re: [PATCH] Re: New warning (or at least I only noticed it now)

2023-11-10 Thread Jean-Marc Lasgouttes
Le 10/11/2023 à 12:16, Pavel Sanda a écrit : On Fri, Nov 10, 2023 at 10:55:56AM +0100, Jean-Marc Lasgouttes wrote: PS: I have to admit that I have a kink with weird uses of preprocessor macros: https://gitlab.inria.fr/lasgoutt/parameters Funny, I found # and ## operators very handy for writing

Re: [PATCH] Re: New warning (or at least I only noticed it now)

2023-11-10 Thread Pavel Sanda
On Fri, Nov 10, 2023 at 10:55:56AM +0100, Jean-Marc Lasgouttes wrote: > PS: I have to admit that I have a kink with weird uses of preprocessor > macros: https://gitlab.inria.fr/lasgoutt/parameters Funny, I found # and ## operators very handy for writing commandline parameter parsing via simple inc

Re: [PATCH] Re: New warning (or at least I only noticed it now)

2023-11-10 Thread Jean-Marc Lasgouttes
Le 09/11/2023 à 21:54, José Matos a écrit : On Thu, 2023-11-09 at 20:34 +0100, Pavel Sanda wrote: Looks reasonable. Pavel I agree. After so many dark spells I fear for Jean-Marc's sanity. :-D You mean that I should not rewrite parts of LyX in preprocessor macros as I intended to? JMarc

Re: [PATCH] Re: New warning (or at least I only noticed it now)

2023-11-09 Thread José Matos
On Thu, 2023-11-09 at 20:34 +0100, Pavel Sanda wrote: > Looks reasonable. Pavel I agree. After so many dark spells I fear for Jean-Marc's sanity. :-D -- José Abílio -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel

Re: [PATCH] Re: New warning (or at least I only noticed it now)

2023-11-09 Thread Pavel Sanda
On Thu, Nov 09, 2023 at 06:21:03PM +0100, Jean-Marc Lasgouttes wrote: > Thoughts? Looks reasonable. Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel

Re: [PATCH] Re: New warning (or at least I only noticed it now)

2023-11-09 Thread Jean-Marc Lasgouttes
Le 08/11/2023 à 22:50, Pavel Sanda a écrit : We have to do something for this annoying warning. What about the following? If it works why not. I stopped following that gcc bug, but last time I looked they gcc devs seemed convinced that false-positive ratio is small enough that they will not

Re: [PATCH] Re: New warning (or at least I only noticed it now)

2023-11-08 Thread Pavel Sanda
e attached changes anything? P > >> > >>It does, now those attached are what remains. > > > >Nice, so now we know the culprit. The question is whether we want > >to get rid of reference on the left side or fix the temps on the right. > > We have to do somethi

[PATCH] Re: New warning (or at least I only noticed it now)

2023-11-08 Thread Jean-Marc Lasgouttes
. The question is whether we want to get rid of reference on the left side or fix the temps on the right. We have to do something for this annoying warning. What about the following? JMarc From 71d372b787516a28e9ec726d4a390dcb83bff10c Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date

Re: New warning (or at least I only noticed it now)

2023-05-14 Thread Jean-Marc Lasgouttes
Le 05/05/2023 à 20:39, Jean-Marc Lasgouttes a écrit : Le 21/11/2022 à 08:34, José Matos a écrit : Hi,    I have been compiling and running 2.4 compiled with the latest preview of gcc 13. I got a new warning: "note: the temporary was destroyed at the end of the full expression" I

Re: [LyX/master] Fix unitialized member warning by coverity

2023-05-09 Thread Jean-Marc Lasgouttes
Le 09/05/2023 à 14:23, Kornel Benko a écrit : Yes, looks good, OTOH not needed. But better be on the safe side. I agree that there is no real problem here. It justs improves our coverity score :) JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/ly

Re: [LyX/master] Fix unitialized member warning by coverity

2023-05-09 Thread Kornel Benko
Am Tue, 9 May 2023 13:53:15 +0200 schrieb Jean-Marc Lasgouttes : > Le 09/05/2023 à 12:44, Jean-Marc Lasgouttes a écrit : > > commit e620920fe2488ba50ff0b992c2529fdb69f2691a > > Author: Jean-Marc Lasgouttes > > Date: Tue May 9 13:49:17 2023 +0200 > > > >

Re: [LyX/master] Fix unitialized member warning by coverity

2023-05-09 Thread Jean-Marc Lasgouttes
Le 09/05/2023 à 12:44, Jean-Marc Lasgouttes a écrit : commit e620920fe2488ba50ff0b992c2529fdb69f2691a Author: Jean-Marc Lasgouttes Date: Tue May 9 13:49:17 2023 +0200 Fix unitialized member warning by coverity Kornel, is that OK? JMarc The members open_braces and

Re: New warning (or at least I only noticed it now)

2023-05-07 Thread Scott Kostyshak
On Sun, May 07, 2023 at 12:02:42PM +0200, Jean-Marc Lasgouttes wrote: > Le 07/05/2023 à 03:14, Scott Kostyshak a écrit : > > > I still think that these warning are more annoying than useful. > > > > I don't understand the underlying issues well enough. But in thi

Re: New warning (or at least I only noticed it now)

2023-05-07 Thread Jean-Marc Lasgouttes
Le 07/05/2023 à 03:14, Scott Kostyshak a écrit : I still think that these warning are more annoying than useful. I don't understand the underlying issues well enough. But in this case, shall we disable these instances with #pragma ? The other solution may be to declare first the argume

Re: New warning (or at least I only noticed it now)

2023-05-06 Thread Scott Kostyshak
On Fri, May 05, 2023 at 08:39:22PM +0200, Jean-Marc Lasgouttes wrote: > Le 21/11/2022 à 08:34, José Matos a écrit : > > Hi, > >I have been compiling and running 2.4 compiled with the latest > > preview of gcc 13. > > > > I got a new warning: > > "

Re: New warning (or at least I only noticed it now)

2023-05-05 Thread Jean-Marc Lasgouttes
Le 21/11/2022 à 08:34, José Matos a écrit : Hi, I have been compiling and running 2.4 compiled with the latest preview of gcc 13. I got a new warning: "note: the temporary was destroyed at the end of the full expression" I managed to solve cleanly the ones related to Converte

Warning about deprecated call

2023-03-19 Thread José Matos
Updating and recompiling I got this warning: /home/jamatos/lyx/lyx.anon/src/support/mutex.cpp: In constructor ‘lyx::Mutex::Private::Private()’: /home/jamatos/lyx/lyx.anon/src/support/mutex.cpp:25:21: warning: ‘QMutex::QMutex(RecursionMode)’ is deprecated: Use QRecursiveMutex instead of a

Re: lyx2lyx warning on exporting recent Japanese files to 2.2.x

2023-02-17 Thread Kornel Benko
Am Fri, 17 Feb 2023 19:15:36 +0100 schrieb "Jürgen Spitzmüller" : > Am Freitag, dem 17.02.2023 um 12:22 -0500 schrieb Scott Kostyshak: > > Indeed. But for example we might want to know if an example or manual > > fails because of this. I think Jürgen's point is that for a > > *template*, > > it ma

Re: lyx2lyx warning on exporting recent Japanese files to 2.2.x

2023-02-17 Thread Jürgen Spitzmüller
Am Freitag, dem 17.02.2023 um 12:22 -0500 schrieb Scott Kostyshak: > Indeed. But for example we might want to know if an example or manual > fails because of this. I think Jürgen's point is that for a > *template*, > it makes sense not to have it. > > > The disadvantage OTOH would be that we would

Re: lyx2lyx warning on exporting recent Japanese files to 2.2.x

2023-02-17 Thread Scott Kostyshak
:15 -0500 schrieb Scott Kostyshak: > > > > > > > > > > > > > I get the following (the line number changes depending on the > > > > > > > file): > > > > > > > > > > > > > >   lyx2lyx warning: Can&#

Re: lyx2lyx warning on exporting recent Japanese files to 2.2.x

2023-02-17 Thread Kornel Benko
rote: > > > > On Fri, Feb 17, 2023 at 03:42:14PM +0100, Jürgen Spitzmüller wrote: > > > > > Am Freitag, dem 17.02.2023 um 07:15 -0500 schrieb Scott Kostyshak: > > > > > > I get the following (the line number changes depending on the file): >

Re: lyx2lyx warning on exporting recent Japanese files to 2.2.x

2023-02-17 Thread Scott Kostyshak
> > > > Am Freitag, dem 17.02.2023 um 07:15 -0500 schrieb Scott Kostyshak: > > > > > I get the following (the line number changes depending on the file): > > > > > > > > > >   lyx2lyx warning: Can't find bibfiles for bibtex inset at l

Re: lyx2lyx warning on exporting recent Japanese files to 2.2.x

2023-02-17 Thread Kornel Benko
> > > > I get the following (the line number changes depending on the file): > > > > > > > >   lyx2lyx warning: Can't find bibfiles for bibtex inset at line 83! > > > > > > > > Is this worth fixing? > > > > > >

Re: lyx2lyx warning on exporting recent Japanese files to 2.2.x

2023-02-17 Thread Scott Kostyshak
ending on the file): > > > > > >   lyx2lyx warning: Can't find bibfiles for bibtex inset at line 83! > > > > > > Is this worth fixing? > > > > The bibtex inset in these files does not contain any bib file, so the > > warning is appropriate. I would not want

Re: lyx2lyx warning on exporting recent Japanese files to 2.2.x

2023-02-17 Thread Scott Kostyshak
On Fri, Feb 17, 2023 at 03:42:14PM +0100, Jürgen Spitzmüller wrote: > Am Freitag, dem 17.02.2023 um 07:15 -0500 schrieb Scott Kostyshak: > > I get the following (the line number changes depending on the file): > > > >   lyx2lyx warning: Can't find bibfiles for bibtex ins

Re: lyx2lyx warning on exporting recent Japanese files to 2.2.x

2023-02-17 Thread Jürgen Spitzmüller
Am Freitag, dem 17.02.2023 um 07:15 -0500 schrieb Scott Kostyshak: > I get the following (the line number changes depending on the file): > >   lyx2lyx warning: Can't find bibfiles for bibtex inset at line 83! > > Is this worth fixing? The bibtex inset in these files does

lyx2lyx warning on exporting recent Japanese files to 2.2.x

2023-02-17 Thread Scott Kostyshak
I get the following (the line number changes depending on the file): lyx2lyx warning: Can't find bibfiles for bibtex inset at line 83! Is this worth fixing? The following ctests are failing: export/templates/ja/Articles/Japanese_Article_%28JS_Bundle_for_LuaTeX%29_lyx16 (Failed) e

Re: Suspicious warning for fake int in PreviewLoader.cpp

2022-12-15 Thread Stephan Witt
Am 16.12.2022 um 00:48 schrieb Richard Kimberly Heck : > > On 12/15/22 17:02, Stephan Witt wrote: >> Hi all, >> >> I’m seeing this warning with more modern Apple compilers for lyx-2.3.x: >> >> lyx-2.3.x/src/graphics/PreviewLoader.cpp:730:28: warning: result

Re: Suspicious warning for fake int in PreviewLoader.cpp

2022-12-15 Thread Richard Kimberly Heck
On 12/15/22 17:02, Stephan Witt wrote: Hi all, I’m seeing this warning with more modern Apple compilers for lyx-2.3.x: lyx-2.3.x/src/graphics/PreviewLoader.cpp:730:28: warning: result of '2^20' is 22; did you mean '1 << 20' (1048576)? [-Wxor-used-as-pow]

Suspicious warning for fake int in PreviewLoader.cpp

2022-12-15 Thread Stephan Witt
Hi all, I’m seeing this warning with more modern Apple compilers for lyx-2.3.x: lyx-2.3.x/src/graphics/PreviewLoader.cpp:730:28: warning: result of '2^20' is 22; did you mean '1 << 20' (1048576)? [-Wxor-used-as-pow] static

Re: Warning in master in C++11 mode

2022-12-14 Thread Scott Kostyshak
On Thu, Dec 15, 2022 at 12:38:28AM +0100, Thibaut Cuvelier wrote: > On Sat, 26 Nov 2022 at 20:33, Scott Kostyshak > wrote: > > > On Wed, Nov 09, 2022 at 10:41:17AM +0100, Jean-Marc Lasgouttes wrote: > > > Hi, > > > > > > I get this warning when compilin

Re: Warning in master in C++11 mode

2022-12-14 Thread Thibaut Cuvelier
On Sat, 26 Nov 2022 at 20:33, Scott Kostyshak wrote: > On Wed, Nov 09, 2022 at 10:41:17AM +0100, Jean-Marc Lasgouttes wrote: > > Hi, > > > > I get this warning when compiling in C++11 mode : > > > > ../../master/src/insets/InsetIndex.cpp: In member function

Re: [LyX/master] Simplify conversion routine, and remove warning

2022-12-08 Thread Scott Kostyshak
On Thu, Dec 08, 2022 at 04:14:00PM +0100, Richard Kimberly Heck wrote: > commit fa449e976906edb9510639f2ca7bf491a2e07b46 > Author: Richard Kimberly Heck > Date: Thu Dec 8 11:09:48 2022 -0500 > > Simplify conversion routine, and remove warning > --- > lib/lyx2

Re: Warning in master in C++11 mode

2022-11-26 Thread Scott Kostyshak
On Wed, Nov 09, 2022 at 10:41:17AM +0100, Jean-Marc Lasgouttes wrote: > Hi, > > I get this warning when compiling in C++11 mode : > > ../../master/src/insets/InsetIndex.cpp: In member function ‘virtual void > lyx::InsetIndex::docbook(lyx::XMLStream&, const lyx

Re: New warning (or at least I only noticed it now)

2022-11-22 Thread Jean-Marc Lasgouttes
the temps on the right. So what is the issue that the warning detect? I still don't get it. My interpretation is that gcc is nervous about the temporary created via getFont which is then propagated to the bottom via chain of refs and it's not possible for it to decide whether returne

Re: New warning (or at least I only noticed it now)

2022-11-22 Thread Pavel Sanda
> > So what is the issue that the warning detect? I still don't get it. My interpretation is that gcc is nervous about the temporary created via getFont which is then propagated to the bottom via chain of refs and it's not possible for it to decide whether returned value is independe

Re: New warning (or at least I only noticed it now)

2022-11-21 Thread Jean-Marc Lasgouttes
Le 22 novembre 2022 03:04:39 GMT+01:00, Pavel Sanda a écrit : >Nice, so now we know the culprit. The question is whether we want >to get rid of reference on the left side or fix the temps on the right. So what is the issue that the warning detect? I still don't get it. JMarc --

Re: New warning (or at least I only noticed it now)

2022-11-21 Thread Pavel Sanda
On Tue, Nov 22, 2022 at 01:47:26AM +, José Matos wrote: > On Mon, 2022-11-21 at 23:08 +0100, Pavel Sanda wrote: > > Can you try whether the attached changes anything? P > > It does, now those attached are what remains. Nice, so now we know the culprit. The question is whether we want to get

Re: New warning (or at least I only noticed it now)

2022-11-21 Thread José Matos
lyx::Buffer*, const lyx::support::FileName&, const lyx::support::FileName&, const lyx::support::FileName&, const std::string&, const std::string&, lyx::ErrorList&, int, bool)’: /home/jamatos/lyx/lyx.anon/src/Converter.cpp:714:55: warning: possibly dangling reference

Re: New warning (or at least I only noticed it now)

2022-11-21 Thread Pavel Sanda
On Mon, Nov 21, 2022 at 09:07:02PM +, José Matos wrote: > I hope that this helps, > -- > José Abílio > /home/jamatos/lyx/lyx.anon/src/BufferView.cpp: In member function ???bool > lyx::BufferView::needsFitCursor() const???: > /home/jamatos/lyx/lyx.anon/src/BufferView.c

Re: New warning (or at least I only noticed it now)

2022-11-21 Thread Pavel Sanda
On Mon, Nov 21, 2022 at 02:07:57PM +0100, Pavel Sanda wrote: > > And it seems to me that addresses are consistently returned, which point to > > an array cell (which s not going away). > > Maybe, I haven't study the code carefully. Can look again in the evening. It seems you are right, I did not

Re: New warning (or at least I only noticed it now)

2022-11-21 Thread José Matos
). I hope that this helps, -- José Abílio /home/jamatos/lyx/lyx.anon/src/BufferView.cpp: In member function ‘bool lyx::BufferView::needsFitCursor() const’: /home/jamatos/lyx/lyx.anon/src/BufferView.cpp:485:47: warning: possibly dangling reference to a temporary [-Wdangling-reference] 485 |

Re: New warning (or at least I only noticed it now)

2022-11-21 Thread Pavel Sanda
#x27;t we create and return temp at GuiApplication.cpp:3695 ? > >If you look above at theFontLoader (GuiApplication.cpp 3689) > >we do similar logic but we reserve font_loader_ for the construct. > > If it was in GuiApplication, the warning will be there, wouldn't it? I don&#x

Re: New warning (or at least I only noticed it now)

2022-11-21 Thread Jean-Marc Lasgouttes
n.cpp 3689) we do similar logic but we reserve font_loader_ for the construct. If it was in GuiApplication, the warning will be there, wouldn't it? And it seems to me that addresses are consistently returned, which point to an array cell (which s not going away). > Or we could stop

Re: New warning (or at least I only noticed it now)

2022-11-21 Thread Pavel Sanda
On Mon, Nov 21, 2022 at 10:09:15AM +0100, Jean-Marc Lasgouttes wrote: > I cannot really understand what the destroyed temporary is. Don't we create and return temp at GuiApplication.cpp:3695 ? If you look above at theFontLoader (GuiApplication.cpp 3689) we do similar logic but we reserve font_loa

Re: New warning (or at least I only noticed it now)

2022-11-21 Thread Jean-Marc Lasgouttes
Le 21/11/2022 à 08:34, José Matos a écrit : Hi, I have been compiling and running 2.4 compiled with the latest preview of gcc 13. I got a new warning: "note: the temporary was destroyed at the end of the full expression" Attached follows an example, there are more I can send i

New warning (or at least I only noticed it now)

2022-11-20 Thread José Matos
Hi, I have been compiling and running 2.4 compiled with the latest preview of gcc 13. I got a new warning: "note: the temporary was destroyed at the end of the full expression" Attached follows an example, there are more I can send if they are relevant. Best regards, -- José Ab

Warning in master in C++11 mode

2022-11-09 Thread Jean-Marc Lasgouttes
Hi, I get this warning when compiling in C++11 mode : ../../master/src/insets/InsetIndex.cpp: In member function ‘virtual void lyx::InsetIndex::docbook(lyx::XMLStream&, const lyx::OutputParams&) const’: ../../master/src/insets/InsetIndex.cpp:376:6: warning: init-statement in s

Re: New warning on old function

2022-09-27 Thread Kornel Benko
Am Tue, 27 Sep 2022 16:40:40 +0200 schrieb Jean-Marc Lasgouttes : > Le 21/09/2022 à 20:10, Kornel Benko a écrit : > > > > /usr2/src/lyx/lyx-git/src/Paragraph.cpp:1931:1: warning: control reaches > > end of > > non-void function [-Wreturn-type] > > > >

Re: New warning on old function

2022-09-27 Thread Jean-Marc Lasgouttes
Le 21/09/2022 à 20:10, Kornel Benko a écrit : /usr2/src/lyx/lyx-git/src/Paragraph.cpp:1931:1: warning: control reaches end of non-void function [-Wreturn-type] This is with gcc-12, compiled in debug mode. What gcc 12 version? On ububtu jammy, we have 12.1, which has a weird warning in the

Re: New warning on old function

2022-09-25 Thread Kornel Benko
Am Sat, 24 Sep 2022 21:07:09 -0400 schrieb Scott Kostyshak : > It's in at 725168ba. Do you see any other warnings with gcc-12? > > Scott No other warnings yet. Thanks Kornel pgpdcp1b84z4P.pgp Description: Digitale Signatur von OpenPGP -- lyx-devel mailing list lyx-devel@lists.lyx.or

Re: New warning on old function

2022-09-24 Thread Scott Kostyshak
On Sat, Sep 24, 2022 at 10:57:05PM +0200, Kornel Benko wrote: > Am Sat, 24 Sep 2022 14:51:17 -0400 > schrieb Scott Kostyshak : > > > On Wed, Sep 21, 2022 at 08:10:54PM +0200, Kornel Benko wrote: > > > > > > /usr2/src/lyx/lyx-git/src/Paragraph.cpp:1931:1: warni

Re: New warning on old function

2022-09-24 Thread Kornel Benko
Am Sat, 24 Sep 2022 14:51:17 -0400 schrieb Scott Kostyshak : > On Wed, Sep 21, 2022 at 08:10:54PM +0200, Kornel Benko wrote: > > > > /usr2/src/lyx/lyx-git/src/Paragraph.cpp:1931:1: warning: control reaches > > end of > > non-void function [-Wreturn-type] > >

Re: New warning on old function

2022-09-24 Thread Scott Kostyshak
On Wed, Sep 21, 2022 at 08:10:54PM +0200, Kornel Benko wrote: > > /usr2/src/lyx/lyx-git/src/Paragraph.cpp:1931:1: warning: control reaches end > of non-void > function [-Wreturn-type] > > This is with gcc-12, compiled in debug mode. It makes sense if the warning is only g

  1   2   3   4   5   6   7   8   9   10   >