summaryrefslogtreecommitdiff
path: root/src/win95
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2002-02-09 19:30:43 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:37 +0200
commite681d155d9cbc27bdacc05bd967a249c56e3f1f1 (patch)
treea9dd62eae0f354d1522a4f35ad795274e9bb63ba /src/win95
parent47d9cc1b2c85ca67375a507d273aae082427b46f (diff)
Disable Gold-only weapons for Regular edition (Tim Beckmann)
fixed compiling with -DNDEBUG
Diffstat (limited to 'src/win95')
-rw-r--r--src/win95/awtexld.cpp4
-rw-r--r--src/win95/list_tem.hpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/win95/awtexld.cpp b/src/win95/awtexld.cpp
index bef0b26..fa615bb 100644
--- a/src/win95/awtexld.cpp
+++ b/src/win95/awtexld.cpp
@@ -228,7 +228,7 @@ namespace AwTl
db_log1(("AW: Potential Memory Leaks Detected!!!"));
}
#ifdef _CPPRTTI
- #warning "Run-Time Type Identification (RTTI) is enabled"
+ //#warning "Run-Time Type Identification (RTTI) is enabled"
for (Iterator itLeak(*this) ; !itLeak.Done() ; itLeak.Next())
{
db_logf1(("\tAW Object not deallocated: Type: %s RefCnt: %u",typeid(*itLeak.Get()).name(),itLeak.Get()->m_nRefCnt));
@@ -238,7 +238,7 @@ namespace AwTl
db_log1(("AW: Object dump complete"));
}
#else // ! _CPPRTTI
- #warning "Run-Time Type Identification (RTTI) is not enabled - memory leak checking will not report types"
+ //#warning "Run-Time Type Identification (RTTI) is not enabled - memory leak checking will not report types"
unsigned nRefs(0);
for (Iterator itLeak(*this) ; !itLeak.Done() ; itLeak.Next())
{
diff --git a/src/win95/list_tem.hpp b/src/win95/list_tem.hpp
index 020aacc..d5a150a 100644
--- a/src/win95/list_tem.hpp
+++ b/src/win95/list_tem.hpp
@@ -37,7 +37,7 @@
#endif
#ifdef NDEBUG
- #define fail if (0)
+ static void fail(...) {}
#define list_fail_get_data_from_sentinel NULL
#define list_fail_add_entry_after NULL
#define list_fail_add_entry_before NULL