Skip to content

Fix compiler warnings in mmtk.c#88

Merged
peterzhu2118 merged 1 commit into
mainfrom
compiler-warnings-macos
May 31, 2026
Merged

Fix compiler warnings in mmtk.c#88
peterzhu2118 merged 1 commit into
mainfrom
compiler-warnings-macos

Conversation

@peterzhu2118
Copy link
Copy Markdown
Member

gc/mmtk/mmtk.c:505:1: warning: function 'rb_mmtk_gc_thread_panic_handler' could be declared with attribute 'noreturn' [-Wmissing-noreturn]
  505 | {
      | ^
gc/mmtk/mmtk.c:987:27: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
  987 |         char obj_info_buf[info_size];
      |                           ^~~~~~~~~
gc/mmtk/mmtk.c:990:34: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
  990 |         char parent_obj_info_buf[info_size];
      |                                  ^~~~~~~~~

    gc/mmtk/mmtk.c:505:1: warning: function 'rb_mmtk_gc_thread_panic_handler' could be declared with attribute 'noreturn' [-Wmissing-noreturn]
      505 | {
          | ^
    gc/mmtk/mmtk.c:987:27: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
      987 |         char obj_info_buf[info_size];
          |                           ^~~~~~~~~
    gc/mmtk/mmtk.c:990:34: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
      990 |         char parent_obj_info_buf[info_size];
          |                                  ^~~~~~~~~
@peterzhu2118 peterzhu2118 merged commit 3631109 into main May 31, 2026
22 checks passed
@peterzhu2118 peterzhu2118 deleted the compiler-warnings-macos branch May 31, 2026 10:34
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.

1 participant