diff options
author | gonzo <gonzo@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-10 07:33:55 +0000 |
---|---|---|
committer | gonzo <gonzo@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-10 07:33:55 +0000 |
commit | e48607d3e409cba2447fe8dc24ffb98810f96579 (patch) | |
tree | cbd17a5dffadf187dae53b850675c7f0567768a6 /ace/Malloc.cpp | |
parent | 176b60d72029863ce45ff0998de5078bf5b3c72a (diff) | |
download | ATCD-e48607d3e409cba2447fe8dc24ffb98810f96579.tar.gz |
Tests now run OK (most of them) with BCB3
Diffstat (limited to 'ace/Malloc.cpp')
-rw-r--r-- | ace/Malloc.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ace/Malloc.cpp b/ace/Malloc.cpp index 9f630abac94..8cc622a7c00 100644 --- a/ace/Malloc.cpp +++ b/ace/Malloc.cpp @@ -90,8 +90,12 @@ ACE_Allocator::instance (void) // destroy it. static void *allocator_instance = 0; - // Check this critical assumption . . . - ACE_ASSERT (sizeof allocator_instance == sizeof (ACE_New_Allocator)); + // Check this critical assumption. + // We put it in a variable first to avoid stupid compiler + // warnings that the condition may always be true/false. + int assertion = (sizeof allocator_instance == + sizeof (ACE_New_Allocator)); + ACE_ASSERT (assertion); // Initialize the allocator_instance by using a placement // new. The ACE_NEW_RETURN below doesn't actually allocate |