Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-84661

QtNetwork/QtNetwork causes errors due to deprecated QNetworkConfiguration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.15.1
    • 5.15.0
    • Network: HTTP
    • None
    • Windows
    • 3
    • a5d8c9b1c24d6aa1cfd137bef4ca670586d56554 (qt/qtbase/5.15)
    • Qt6_Foundation_ Sprint 11

    Description

      The header QtNetwork/QtNetwork includes qnetworkconfiguration.h which registers the meta type leading to a warning (which is not allowed for header files):

      1>c:\isis\v8xx\tool\iqt\include\qtcore\qmetatype.h(825): error C2220: warning treated as error - no 'object' file generated
      1>c:\isis\v8xx\tool\iqt\include\qtcore\qmetatype.h(825): warning C4996: 'QNetworkConfiguration::QNetworkConfiguration': was declared deprecated
      1>c:\isis\v8xx\tool\iqt\include\qtnetwork\qnetworkconfiguration.h(64): note: see declaration of 'QNetworkConfiguration::QNetworkConfiguration'
      1>c:\isis\v8xx\tool\iqt\include\qtcore\qmetatype.h(823): note: while compiling class template member function 'void *QtMetaTypePrivate::QMetaTypeFunctionHelper<T,true>::Construct(void *,const void *)'
      1> with
      1> [
      1> T=QNetworkConfiguration
      1> ]
      1>c:\isis\v8xx\tool\iqt\include\qtcore\qmetatype.h(1866): note: see reference to function template instantiation 'void *QtMetaTypePrivate::QMetaTypeFunctionHelper<T,true>::Construct(void *,const void *)' being compiled
      1> with
      1> [
      1> T=QNetworkConfiguration
      1> ]
      1>c:\isis\v8xx\tool\iqt\include\qtcore\qmetatype.h(1867): note: see reference to class template instantiation 'QtMetaTypePrivate::QMetaTypeFunctionHelper<T,true>' being compiled
      1> with
      1> [
      1> T=QNetworkConfiguration
      1> ]
      1>c:\isis\v8xx\tool\iqt\include\qtcore\qmetatype.h(1896): note: see reference to function template instantiation 'int qRegisterNormalizedMetaType<T>(const QByteArray &,T *,QtPrivate::MetaTypeDefinedHelper<T,true>::DefinedType)' being compiled
      1> with
      1> [
      1> T=QNetworkConfiguration
      1> ]
      1>c:\isis\v8xx\tool\iqt\include\qtnetwork\qnetworkconfiguration.h(143): note: see reference to function template instantiation 'int qRegisterMetaType<QNetworkConfiguration>(const char *,T *,QtPrivate::MetaTypeDefinedHelper<T,true>::DefinedType)' being compiled
      1> with
      1> [
      1> T=QNetworkConfiguration
      1> ]
      1>c:\isis\v8xx\tool\iqt\include\qtcore\qmetatype.h(826): warning C4996: 'QNetworkConfiguration::QNetworkConfiguration': was declared deprecated
      1>c:\isis\v8xx\tool\iqt\include\qtnetwork\qnetworkconfiguration.h(63): note: see declaration of 'QNetworkConfiguration::QNetworkConfiguration'
      1>c:\isis\v8xx\tool\iqt\include\qtcore\qmetatype.h(819): warning C4996: 'QNetworkConfiguration::~QNetworkConfiguration': was declared deprecated
      1>c:\isis\v8xx\tool\iqt\include\qtnetwork\qnetworkconfiguration.h(137): note: compiler has generated 'QNetworkConfiguration::~QNetworkConfiguration' here
      1>c:\isis\v8xx\tool\iqt\include\qtcore\qmetatype.h(817): note: while compiling class template member function 'void QtMetaTypePrivate::QMetaTypeFunctionHelper<T,true>::Destruct(void *)'
      1> with
      1> [
      1> T=QNetworkConfiguration
      1> ]
      1>c:\isis\v8xx\tool\iqt\include\qtcore\qmetatype.h(1866): note: see reference to function template instantiation 'void QtMetaTypePrivate::QMetaTypeFunctionHelper<T,true>::Destruct(void *)' being compiled
      1> with
      1> [
      1> T=QNetworkConfiguration
      1> ]
      

      Attachments

        For Gerrit Dashboard: QTBUG-84661
        # Subject Branch Project Status CR V

        Activity

          People

            manordheim Mårten Nordheim
            alexj Alexander Jährling
            Maurice Kalinowski Maurice Kalinowski
            Alex Blasche Alex Blasche
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes