Am Freitag, 19. April 2019, 14:40:38 CEST schrieb Jean-Marc Lasgouttes: > commit 7bb08f10b1567a1a5bd87ba213c13a40d6a70cfc > Author: Jean-Marc Lasgouttes <[email protected]> > Date: Thu Apr 18 17:09:12 2019 +0200 > > Move initial values of LyXRC members to the header >
Creating 'check_Length', I got
cd /BUILD/BUILDMint18/BuildLyxGitQt5.6.1local-gcc5.4.0/src/tests &&
/usr/bin/g++ -DBOOST_USER_CONFIG="<config.h>" -DHUNSPELL_STATIC -DQT_CORE_LIB
-DQT_GUI_LIB -I/BUILD/BUILDMint18/BuildLyxGitQt5.6.1local-gcc5.4.0
-I/usr2/src/lyx/lyx-git/src -I/usr/include/enchant
-I/usr/src/lyx/lyx-git/3rdparty/hunspell/1.6.2/src
-I/usr2/src/lyx/lyx-git/3rdparty/boost
-I/BUILD/BUILDMint18/BuildLyxGitQt5.6.1local-gcc5.4.0/src
-I/usr2/src/lyx/lyx-git/src/support/tests -I/usr2/src/lyx/lyx-git/src/tests
-isystem /usr/include/x86_64-linux-gnu/qt5 -isystem
/usr/include/x86_64-linux-gnu/qt5/QtCore -isystem
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -isystem
/usr/include/x86_64-linux-gnu/qt5/QtGui -Wall -Wunused-parameter --std=c++14
-fno-strict-aliasing -O0 -g3 -D_DEBUG -fPIC -std=c++14 -o
CMakeFiles/check_Length.dir/usr2/src/lyx/lyx-git/src/tests/dummy_functions.cpp.o
-c /usr2/src/lyx/lyx-git/src/tests/dummy_functions.cpp
/usr2/src/lyx/lyx-git/src/tests/dummy_functions.cpp:15:2: error: redefinition
of ‘lyx::LyXRC::LyXRC()’
LyXRC::LyXRC() {}
^
In file included from /usr2/src/lyx/lyx-git/src/tests/dummy_functions.cpp:4:0:
/usr2/src/lyx/lyx-git/src/LyXRC.h:188:2: note: ‘lyx::LyXRC::LyXRC()’ previously
defined here
LyXRC() : user_name(support::user_name()),
^
Korneldiff --git a/src/tests/dummy_functions.cpp b/src/tests/dummy_functions.cpp
index 28ea633..83c938b 100644
--- a/src/tests/dummy_functions.cpp
+++ b/src/tests/dummy_functions.cpp
@@ -10,11 +10,10 @@ using namespace std;
namespace lyx {
// Dummy verbose support
bool verbose = false;
// Dummy LyXRC support
- LyXRC::LyXRC() {}
LyXRC lyxrc;
// Dummy LyXAlignment support
enum LyXAlignment {
DUMMY
signature.asc
Description: This is a digitally signed message part.
