PDA

View Full Version : code become grey



weixj2003ld
16th April 2009, 13:26
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:


inline void SbDividerChk(const char * funcname, Type divider) {
#ifndef NDEBUG
//from here the word become grey
if (!(divider != static_cast<Type>(0)))
cc_debugerror_post(funcname, "divide by zero error.", divider);
// end of the word becoming grey
#endif // !NDEBUG
}


Why?

Sheng
16th April 2009, 13:49
It means you have defined NDEBUG.

weixj2003ld
16th April 2009, 14:20
how could I get rid of the warning?

Sheng
16th April 2009, 14:44
use google, you can solve it in 2 minutes.