Results 1 to 4 of 4

Thread: code become grey

  1. #1
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default code become grey

    Hello,
    I compiled my example with msvc2005 ,and the warning occured:
    c:\coin-3.0.0-bin-msvc8\include\inventor\sbbasic.h(95) : warning C4100: “divider”: unreferenced formal parameter。I opened the file sbbasic.h,and found that code as follows:

    Qt Code:
    1. inline void SbDividerChk(const char * funcname, Type divider) {
    2. #ifndef NDEBUG
    3. //from here the word become grey
    4. if (!(divider != static_cast<Type>(0)))
    5. cc_debugerror_post(funcname, "divide by zero error.", divider);
    6. // end of the word becoming grey
    7. #endif // !NDEBUG
    8. }
    To copy to clipboard, switch view to plain text mode 


    Why?

  2. #2
    Join Date
    Sep 2008
    Location
    New York
    Posts
    90
    Thanks
    13
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: code become grey

    It means you have defined NDEBUG.

  3. #3
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: code become grey

    how could I get rid of the warning?

  4. #4
    Join Date
    Sep 2008
    Location
    New York
    Posts
    90
    Thanks
    13
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: code become grey

    use google, you can solve it in 2 minutes.

Similar Threads

  1. How to put custom handle image in QSlider using code?
    By montylee in forum Qt Programming
    Replies: 6
    Last Post: 29th January 2009, 19:38
  2. copyright and gpl
    By janus in forum General Discussion
    Replies: 8
    Last Post: 21st October 2008, 01:13
  3. Pasting code from code tag in emacs
    By Gopala Krishna in forum General Discussion
    Replies: 0
    Last Post: 16th February 2007, 05:47
  4. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.