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

Qt3Support: warnings when used with MinGW

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 4.5.0, 4.5.1, 4.5.2, 4.5.3, 4.6.0, 4.6.1, 4.6.2, 4.6.3, 4.7.0, 4.7.1, 4.8.0
    • None

    Description

      Hi,

      Various functions in q3textstream.h and q3cstring.h are declared Q_COMPAT_EXPORT inline, which doesn't make much sense. It probably makes sense to keep exporting them for backward compatibility, but there is no reason to import them, as gcc notices:

      In file included from c:/src/qt/include/Qt3Support/q3cstring.h:1,
      from c:/src/qt/include/Qt3Support/../../src/qt3support/text/q3textstream.h:50,
      from c:/src/qt/include/Qt3Support/q3textstream.h:1,
      from main.cpp:4:
      c:/src/qt/include/Qt3Support/../../src/qt3support/tools/q3cstring.h:164: warning: inline function 'bool operator==(const Q3CString&, const Q3CString&)' declared as dllimport: attribute ignored

      This is analogous to the case of Q_GUI_EXPORT_INLINE, which is already handled in qglobal.h. Trivial patch attached.

      Attachments

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

        Activity

          People

            menard Alexis Menard (closed Nokia identity) (Inactive)
            jrn Jonathan Nieder
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes