Dear developers,

I had to recompile 2.3.8dev becaus the then enchant bug (see https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg219915.html)

With :

Configuration
  Host type:               x86_64-pc-linux-gnu
Special build flags: build=development std-regex warnings assertions stdlib-debug use-enchant
  Bundled libraries:        boost
  C++ Compiler:            g++ (12.2.0)
C++ Compiler flags: -Wall -Wextra -fPIC -g -O -std=c++14 -Wno-deprecated-copy
  C++ Compiler user flags:
  Linker flags:
  Linker user flags:
  Qt Frontend:
      Qt version:          5.15.8
  Packaging:               posix
  LyX binary dir:          /usr/local/bin
  LyX files dir:           /usr/local/share/lyx-2.3.8dev


I get warnings :

binary_function: 4 occurences
../../../../2.3.x/src/frontends/qt4/GuiDocument.cpp:172:18: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
  172 |         : public binary_function<string, string, int>
/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here
  131 |     struct binary_function

unary_function: 7 occurences
../../2.3.x/src/BranchList.cpp:30:38: warning: ‘template<class _Arg, class _Result> struct std::unary_function’ is deprecated [-Wdeprecated-declarations]
   30 | class BranchNamesEqual : public std::unary_function<Branch, bool>
/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here
  117 |     struct unary_function

others:
../../2.3.x/src/LyXRC.cpp: In function ‘void lyx::actOnUpdatedPrefs(const LyXRC&, const LyXRC&)’: ../../2.3.x/src/LyXRC.cpp:3077:42: warning: comparison between two arrays [-Warray-compare]
 3077 |                 || lyxrc_orig.font_sizes != lyxrc_new.font_sizes
      |                    ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~

../../2.3.x/src/insets/InsetCommandParams.cpp: In member function ‘lyx::docstring lyx::InsetCommandParams::getFirstNonOptParam() const’: ../../2.3.x/src/insets/InsetCommandParams.cpp:596:41: warning: ‘std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = lyx::ParamInfo::ParamData]’ is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 596 | not1(mem_fun_ref(&ParamInfo::ParamData::isOptional)));
      |                              
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/12/bits/stl_function.h:1389:5: note: declared here
 1389 |     mem_fun_ref(_Ret (_Tp::*__f)() const)
      |     ^~~~~~~~~~~

--
Jean-Pierre


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

Reply via email to