[ros-dev] [ros-diffs] [sginsberg] 41436: - In Win32 DBG is defined to 0 for a non-debug build and to 1 for a debug build. In ReactOS we do this slightly different: DBG is correctly defined to 1 for debug, but not defined at all on non-debug/release build. Because gcc is awesome we can then check for debug compilation with both #ifdef DBG and #if DBG (error free! yay gcc!), and so we have mixed usage all over the tree. - Fix this by defining DBG on non-debug build too and deprecate all usage of #ifdef DBG.
KJK::Hyperion
hackbunny at reactos.org
Thu Jun 18 15:20:05 CEST 2009
Timo Kreuzer wrote:
>> [...] Because gcc is awesome we can then check for debug compilation with both #ifdef DBG and #if DBG (error free! yay gcc!), and so we have mixed usage all over the tree
> MSVC behaves exactly the same way ;-P
... but warns on -Wall. In gcc, -Wall is useless
More information about the Ros-dev
mailing list