Skip to content

Fix warnings in gc-mmtk.c#101

Merged
qinsoon merged 1 commit intommtk:mmtk-support-moving-upstreamfrom
qinsoon:fix-warnings-in-gc-mmtk
Nov 6, 2025
Merged

Fix warnings in gc-mmtk.c#101
qinsoon merged 1 commit intommtk:mmtk-support-moving-upstreamfrom
qinsoon:fix-warnings-in-gc-mmtk

Conversation

@qinsoon
Copy link
Member

@qinsoon qinsoon commented Nov 5, 2025

Fix the following warnings:

/home/yilin/Code/julia_workspace/julia/src/gc-mmtk.c: In function 'jl_gc_scan_julia_exc_obj':
/home/yilin/Code/julia_workspace/julia/src/gc-mmtk.c:903:49: warning: initialization of 'jl_value_t **' {aka 'struct _jl_value_t **'} from incompatible pointer type 'union <anonymous> *' [-Wincompatible-pointer-types]
  903 |                     jl_value_t** new_obj_slot = &bt_entry[2 + jlval_index].jlvalue;
      |                                                 ^
/home/yilin/Code/julia_workspace/julia/src/gc-mmtk.c:911:43: warning: initialization of 'jl_value_t **' {aka 'struct _jl_value_t **'} from incompatible pointer type 'union <anonymous> *' [-Wincompatible-pointer-types]
  911 |             jl_value_t** stack_obj_slot = &stack_raw[itr-1].jlvalue;
      | 

Copy link

@udesou udesou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@qinsoon qinsoon merged commit ae38998 into mmtk:mmtk-support-moving-upstream Nov 6, 2025
5 checks passed
qinsoon added a commit that referenced this pull request Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants