Fix GC_ASSERT usage (fix missing trailing semi-colon)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 29 Dec 2011 06:38:09 +0000 (10:38 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 30 Dec 2011 09:56:05 +0000 (13:56 +0400)
* misc.c (GC_init): Append ';' after GC_ASSERT().
* os_dep.c (GC_protect_heap): Likewise.

misc.c
os_dep.c

diff --git a/misc.c b/misc.c
index c1644819f884a7636509125cfec071927a49e083..8b24aa0dd7e9d1aff23d1c5c84bad42d58e2f4a7 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -940,7 +940,7 @@ GC_API void GC_CALL GC_init(void)
         /* For GWW_VDB on Win32, this needs to happen before any        */
         /* heap memory is allocated.                                    */
         GC_dirty_init();
-        GC_ASSERT(GC_bytes_allocd == 0)
+        GC_ASSERT(GC_bytes_allocd == 0);
         GC_incremental = TRUE;
       }
 #   endif
index 1c0b73e1e9f7cc4f4a2f7fa7da9a2ff367118133..d9637933007404411f763991d31f5a5bf6593aeb 100644 (file)
--- a/os_dep.c
+++ b/os_dep.c
@@ -3378,8 +3378,8 @@ STATIC void GC_protect_heap(void)
         if (protect_all) {
           PROTECT(start, len);
         } else {
-          GC_ASSERT(PAGE_ALIGNED(len))
-          GC_ASSERT(PAGE_ALIGNED(start))
+          GC_ASSERT(PAGE_ALIGNED(len));
+          GC_ASSERT(PAGE_ALIGNED(start));
           current_start = current = (struct hblk *)start;
           limit = (struct hblk *)(start + len);
           while (current < limit) {