mda :) ai folosit un nivel de debug prea ridicat :D. pai... ideea asta
si era sa determine compilatorul ca expresia conditionala e constanta
si sa optimizeze unde este cazul (eliminare dead-code). la /W3 iti mai
da acelasi lucru? cand am testat am uitat sa activez warningurile sub windows.<br><br><div class="gmail_quote">2008/3/24 Alexandru Popescu <<a href="mailto:popescu.alex@gmail.com">popescu.alex@gmail.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Am o mica problema la compilarea temei pe Windows.<br>Pentru debug folosesc log.h de pe site. In Linux imi compileaza (cu -Wall) fara nici un warning.<br>Pe Windows, insa, la compilarea cu /W4 imi da urmatoarea eroare<br>
"tema1.cpp(46) : warning C4127: conditional expression is constant" <br>
de 3 ori pentru fiecare linie pe care am ceva de genul <br> "DLOG(DEBUG, "rolul meu este de a parsa si executa linia %s", line);"<br>In tema1.cpp am definit <br> "#define LOG_LEVEL DEBUG "<br>
Merci anticipat... :D<br><font color="#888888"><br clear="all"><br>-- <br>"I want to know God's thoughts; the rest are details."
</font><br>_______________________________________________<br>
so mailing list<br>
<a href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a><br>
<a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Alexandru Mošoi<br><a href="http://alexandru.mosoi.googlepages.com">http://alexandru.mosoi.googlepages.com</a><br><br>Please avoid sending me Word or PowerPoint attachments.<br>
See <a href="http://www.gnu.org/philosophy/no-word-attachments.html">http://www.gnu.org/philosophy/no-word-attachments.html</a>