Results 1 to 1 of 1

Thread: GCC with qmetaobject_p.h error

  1. #1
    Join Date
    Nov 2011
    Location
    Karlsruhe, Germany
    Posts
    57
    Thanks
    10
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default GCC with qmetaobject_p.h error

    Is there any way to disable the warning setup?

    Qt Code:
    1. /Qt/macosx/qt-4.8.4-macosx/include/QtCore/private/../../../src/corelib/kernel/qmetaobject_p.h:148:19: error: 'static' function 'normalizeTypeInternal' declared in header file should be declared 'static inline' [-Werror,-Wunneeded-internal-declaration]
    2. static QByteArray normalizeTypeInternal(const char *t, const char *e, bool fixScope = false, bool adjustConst = true)
    To copy to clipboard, switch view to plain text mode 

    ++

    solved. by adding #pragma GCC diagnostic warning "-Wunused-function"
    Last edited by cic; 26th August 2013 at 13:18.

Similar Threads

  1. Replies: 4
    Last Post: 29th April 2014, 16:20
  2. Replies: 1
    Last Post: 28th December 2012, 22:13
  3. : error: [\NokiaQtSDK\Symbian\SDK\epoc32\release\gcce\udeb\V ideo.exe] Error 1
    By ranjit.kadam in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 1st May 2011, 22:11
  4. Replies: 3
    Last Post: 23rd January 2011, 12:15
  5. Replies: 1
    Last Post: 25th October 2008, 19:18

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.