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

Warning caused by qVersion() in qglobal.h: this function declaration is not a prototype

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.9.3
    • 5.9.1
    • Core: Other
    • None
    • Qt 5.9.1

      macOS 10.12.6

      Xcode 9.0
    • 291233a8d05b79a19e3ae2951824d1c0444cbd27

    Description

      When building a Qt project on macOS with Xcode 9.0, you will see a warning in qglobal.h on the line:

       

      Q_CORE_EXPORT const char *qVersion() Q_DECL_NOTHROW;

      The warning is:

      In file included from 
      Qt/5.9.1/clang_64/lib/QtCore.framework/Headers/QtGlobal:1:
      Qt/5.9.1/clang_64/lib/QtCore.framework/Headers/qglobal.h:358:35: warning: this function declaration is not a prototype [-Wstrict-prototypes]
      Q_CORE_EXPORT const char *qVersion() Q_DECL_NOTHROW;
      

       

      Attachments

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

        Activity

          People

            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            jirauser46068 user-e3f1a (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes