-Wdeprecated-copy-dtor in idlc

julien2412 serval2412 at yahoo.fr
Sat Jan 25 08:50:41 UTC 2020


Hello,

On pc Debian testing x86-64 updated today + master sources updated today, I
noticed these warnings during build:
/home/julien/lo/libreoffice/idlc/source/parser.y: In function ‘int
yyparse()’:
/home/julien/lo/libreoffice/idlc/source/parser.y:593:42: warning:
implicitly-declared ‘AstInterface& AstInterface::operator=(const
AstInterface&)’ is deprecated [-Wdeprecated-copy-dtor]
  593 |                             *pForward = *pInterface;
      |                                          ^~~~~~~~~~
In file included from /home/julien/lo/libreoffice/idlc/inc/fehelper.hxx:23,
                 from /home/julien/lo/libreoffice/idlc/source/parser.y:29:
/home/julien/lo/libreoffice/idlc/inc/astinterface.hxx:52:13: note: because
‘AstInterface’ has user-provided ‘virtual AstInterface::~AstInterface()’
   52 |     virtual ~AstInterface() override;
      |             ^
In file included from /home/julien/lo/libreoffice/idlc/inc/astenum.hxx:22,
                 from
/home/julien/lo/libreoffice/idlc/inc/errorhandler.hxx:24,
                 from /home/julien/lo/libreoffice/idlc/source/parser.y:28:
/home/julien/lo/libreoffice/idlc/inc/asttype.hxx: In member function
‘AstType& AstType::operator=(const AstType&)’:
/home/julien/lo/libreoffice/idlc/inc/asttype.hxx:24:7: warning:
implicitly-declared ‘AstDeclaration& AstDeclaration::operator=(const
AstDeclaration&)’ is deprecated [-Wdeprecated-copy-dtor]
   24 | class AstType : public AstDeclaration
      |       ^~~~~~~
In file included from
/home/julien/lo/libreoffice/idlc/inc/errorhandler.hxx:22,
                 from /home/julien/lo/libreoffice/idlc/source/parser.y:28:
/home/julien/lo/libreoffice/idlc/inc/astdeclaration.hxx:64:13: note: because
‘AstDeclaration’ has user-provided ‘virtual
AstDeclaration::~AstDeclaration()’
   64 |     virtual ~AstDeclaration();
      |             ^
In file included from /home/julien/lo/libreoffice/idlc/inc/fehelper.hxx:23,
                 from /home/julien/lo/libreoffice/idlc/source/parser.y:29:
/home/julien/lo/libreoffice/idlc/inc/astinterface.hxx: In member function
‘AstInterface& AstInterface::operator=(const AstInterface&)’:
/home/julien/lo/libreoffice/idlc/inc/astinterface.hxx:29:7: note:
synthesized method ‘AstType& AstType::operator=(const AstType&)’ first
required here
   29 | class AstInterface : public AstType
      |       ^~~~~~~~~~~~
/home/julien/lo/libreoffice/idlc/inc/astinterface.hxx:29:7: warning:
implicitly-declared ‘AstScope& AstScope::operator=(const AstScope&)’ is
deprecated [-Wdeprecated-copy-dtor]
In file included from /home/julien/lo/libreoffice/idlc/inc/astenum.hxx:23,
                 from
/home/julien/lo/libreoffice/idlc/inc/errorhandler.hxx:24,
                 from /home/julien/lo/libreoffice/idlc/source/parser.y:28:
/home/julien/lo/libreoffice/idlc/inc/astscope.hxx:32:13: note: because
‘AstScope’ has user-provided ‘virtual AstScope::~AstScope()’
   32 |     virtual ~AstScope();
      |             ^
/home/julien/lo/libreoffice/idlc/source/parser.y: In function ‘int
yyparse()’:
/home/julien/lo/libreoffice/idlc/source/parser.y:593:42: note: synthesized
method ‘AstInterface& AstInterface::operator=(const AstInterface&)’ first
required here
  593 |                             *pForward = *pInterface;
      |        
...                                  ^~~~~~~~~~
/home/julien/lo/libreoffice/workdir/LexTarget/unoidl/source/sourceprovider-scanner.cxx:1978:17:
warning: ‘void yyunput(int, char*, yyscan_t)’ defined but not used
[-Wunused-function]
 1978 |     static void yyunput (int c, char * yy_bp , yyscan_t yyscanner)
      |        

Don't know how to fix these but if somebody is interested...

Julien



--
Sent from: http://document-foundation-mail-archive.969070.n3.nabble.com/Dev-f1639786.html


More information about the LibreOffice mailing list