diff --git a/dtool/src/dconfig/notifyCategory.I b/dtool/src/dconfig/notifyCategory.I index 12ae3c1f61..23ff93efb5 100644 --- a/dtool/src/dconfig/notifyCategory.I +++ b/dtool/src/dconfig/notifyCategory.I @@ -64,7 +64,11 @@ is_on(NotifySeverity severity) const { //////////////////////////////////////////////////////////////////// INLINE bool NotifyCategory:: is_spam() const { +#ifndef NDEBUG return is_on(NS_spam); +#else + return false; +#endif } //////////////////////////////////////////////////////////////////// @@ -74,7 +78,11 @@ is_spam() const { //////////////////////////////////////////////////////////////////// INLINE bool NotifyCategory:: is_debug() const { +#ifndef NDEBUG return is_on(NS_debug); +#else + return false; +#endif } ////////////////////////////////////////////////////////////////////