[so] waring-uri generate de log.h
Alexandru Mosoi
brtzsnr at gmail.com
Mon Mar 24 18:25:01 EET 2008
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.
2008/3/24 Alexandru Popescu <popescu.alex at gmail.com>:
> Am o mica problema la compilarea temei pe Windows.
> Pentru debug folosesc log.h de pe site. In Linux imi compileaza (cu -Wall)
> fara nici un warning.
> Pe Windows, insa, la compilarea cu /W4 imi da urmatoarea eroare
> "tema1.cpp(46) : warning C4127: conditional expression is
> constant"
> de 3 ori pentru fiecare linie pe care am ceva de genul
> "DLOG(DEBUG, "rolul meu este de a parsa si executa linia
> %s", line);"
> In tema1.cpp am definit
> "#define LOG_LEVEL DEBUG "
> Merci anticipat... :D
>
>
> --
> "I want to know God's thoughts; the rest are details."
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
>
--
Alexandru Moşoi
http://alexandru.mosoi.googlepages.com
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20080324/7e143fff/attachment.htm
More information about the so
mailing list