Changeset: c31b2b2d2d90 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c31b2b2d2d90
Modified Files:
        gdk/gdk_heap.c
        gdk/gdk_private.h
Branch: default
Log Message:

Function does not return a useful value.


diffs (32 lines):

diff --git a/gdk/gdk_heap.c b/gdk/gdk_heap.c
--- a/gdk/gdk_heap.c
+++ b/gdk/gdk_heap.c
@@ -553,7 +553,7 @@ HEAPcopy(Heap *dst, Heap *src)
 
 /* Free the memory associated with the heap H.
  * Unlinks (removes) the associated file if the remove flag is set. */
-int
+void
 HEAPfree(Heap *h, int remove)
 {
        if (h->base) {
@@ -587,7 +587,6 @@ HEAPfree(Heap *h, int remove)
                GDKfree(h->filename);
                h->filename = NULL;
        }
-       return 0;
 }
 
 /*
diff --git a/gdk/gdk_private.h b/gdk/gdk_private.h
--- a/gdk/gdk_private.h
+++ b/gdk/gdk_private.h
@@ -155,7 +155,7 @@ void BBPdump(void);         /* never called: fo
        __attribute__((__visibility__("hidden")));
 __hidden int HEAPdelete(Heap *h, const char *o, const char *ext)
        __attribute__((__visibility__("hidden")));
-__hidden int HEAPfree(Heap *h, int remove)
+__hidden void HEAPfree(Heap *h, int remove)
        __attribute__((__visibility__("hidden")));
 __hidden gdk_return HEAPload(Heap *h, const char *nme, const char *ext, int 
trunc)
        __attribute__((__visibility__("hidden")));
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to