Re: Warning while compiling 2.3.6

2020-12-09 Thread Pavel Sanda
On Wed, Dec 09, 2020 at 05:20:41PM +0100, Jean-Pierre Chrétien wrote:
> I just compiled 2.3.6 today.
> 
> I see this, whic is harmless I guess.

Once you check the code in depth its actually harmless indeed.
Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Warning while compiling 2.3.6

2020-12-09 Thread Jean-Pierre Chrétien

Dear developers

I just compiled 2.3.6 today.

I see this, whic is harmless I guess.


1.2.5/mythes.cxx: In member function ‘int MyThes::Lookup(const char*, int, 
mentry**)’:
1.2.5/mythes.cxx:247:25: warning: ‘char* strncpy(char*, const char*, size_t)’ 
specified bound depends on the length of the source argument [-Wstringop-overflow=]

  strncpy(dfn,pos,k);
  ~~~^~~
1.2.5/mythes.cxx:244:27: note: length computed here
 int k = strlen(pos);
 ~~^
>/cite>

Debian Buster
Configuration
  Host type:   x86_64-pc-linux-gnu
  Special build flags:  build=release std-regex use-hunspell
  Bundled libraries:boost hunspell mythes
  C++ Compiler:g++ (8.3.0)
  C++ Compiler flags:   -fPIC -O2 -std=c++14
  C++ Compiler user flags:
  Linker flags:
  Linker user flags:
  Qt Frontend:
  Qt version:  5.11.3
  Packaging:   posix
  LyX binary dir:  /usr/local/bin
  LyX files dir:   /usr/local/share/lyx-2.3.6

--
Jean-Pierre
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel