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

warning: all member functions in class 'QDeclarativePrivate::has_attachedPropertiesMethod<T, hasMember>' are private

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.0
    • 4.7.0
    • None
    • 1ca575eaf7c166f823b82132110ea066be819540

    Description

      Not that high prio, but maybe easy to fix?

      When compiling my project I get a lot of warnings of type:

      ccache icecc -c -m64 -pipe -g -ansi -Wall -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-long-long -fvisibility-inlines-hidden -fvisibility=hidden -D_REENTRANT -Wall -W -DQT_DECLARATIVE_LIB -DQT_PHONON_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../development/64-bit/qt-4.7.0/install/mkspecs/linux-g++-64 -I. -I../../../development/64-bit/qt-4.7.0/install/include/QtCore -I../../../development/64-bit/qt-4.7.0/install/include/QtNetwork -I../../../development/64-bit/qt-4.7.0/install/include/QtGui -I../../../development/64-bit/qt-4.7.0/install/include/QtXml -I../../../development/64-bit/qt-4.7.0/install/include/QtSql -I../../../development/64-bit/qt-4.7.0/install/include/phonon -I../../../development/64-bit/qt-4.7.0/install/include/QtDeclarative -I../../../development/64-bit/qt-4.7.0/install/include -I/home/development/include -I/home/development/64-bit/qt-4.7.0/install/include/phonon_compat -I/tmp/infofox-64bit-master-wieckom/.moc -o /tmp/infofox-64bit-master-wieckom/.obj/main.o main.cpp
      In file included from ../../../development/64-bit/qt-4.7.0/install/include/QtDeclarative/qdeclarative.h:46,
                       from ../../../development/64-bit/qt-4.7.0/install/include/QtDeclarative/QtDeclarative:8,
                       from qml_elements/qmlstatemanager.h:25,
                       from qmlviewer.h:41,
                       from main.cpp:33:
      ../../../development/64-bit/qt-4.7.0/install/include/QtDeclarative/qdeclarativeprivate.h:123: warning: all member functions in class 'QDeclarativePrivate::has_attachedPropertiesMethod<T, hasMember>' are private
      

      where lines 24-25 of qml_elements/qmlstatemanager.h are:

      #include <QtDeclarative>
      
      

      It's just a warning, but it takes a lot of time to dig through 30 of such warnings to get to the "real/useful" warnings about the code in my project. Plus one cannot use -Werror

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            wiecko Marek Wieckowski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes