Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CMAKE compiler warnings #21

Merged
merged 2 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions fnlz_mlc.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,7 @@ STATIC int GC_CALLBACK GC_finalized_disclaim(void *obj)
GC_ASSERT(!GC_find_leak);
(*fc->proc)((word *)obj + 1, fc->cd);
}
#ifdef DISCLAIM_MARK_CHILDREN
/* Prevent the objects reachable from the disclaimed object from */
/* being reclaimed immediately by marking them as live. Useful if */
/* the disclaim function queues objects to be finalised later. */
return 1;
#else
return 0;
#endif
}

STATIC void GC_register_disclaim_proc_inner(unsigned kind,
Expand Down
3 changes: 3 additions & 0 deletions include/gc/gc_disclaim.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
const struct GC_finalizer_closure * /* fc */) GC_ATTR_NONNULL(2);


#ifdef BUFFERED_FINALIZATION
/* This API is defined only if the library has been suitably compiled */
/* (i.e. with ENABLE_DISCLAIM defined). */

Expand Down Expand Up @@ -105,6 +106,8 @@ GC_API void GC_CALL GC_finalize_objects(void);

GC_API size_t GC_finalized_total(void);

#endif

#ifdef __cplusplus
} /* extern "C" */
#endif
Expand Down
4 changes: 4 additions & 0 deletions misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
# include <floss.h>
#endif

#ifdef BUFFERED_FINALIZATION
# include "gc/gc_disclaim.h"
#endif

#ifdef THREADS
# ifdef PCR
# include "il/PCR_IL.h"
Expand Down
Loading