Warning while compiling 2.3.6

Jean-Pierre Chrétien jeanpierre.chretien at free.fr
Wed Dec 9 16:20:41 UTC 2020


Dear developers

I just compiled 2.3.6 today.

I see this, whic is harmless I guess.

<cite>
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


More information about the lyx-devel mailing list