vm.c: UNREACHABLE to suppress warnings

* vm.c (frame_info_{line_no,name,basename,filename,filepath}): add
  UNREACHABLE to suppress warnings.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-05-31 06:50:22 +00:00
parent 711c067eb5
commit 2ab7c5306d

5
vm.c
View File

@ -848,6 +848,7 @@ frame_info_line_no(rb_frame_info_t *fi)
return 0; return 0;
default: default:
rb_bug("frame_info_line_no: unreachable"); rb_bug("frame_info_line_no: unreachable");
UNREACHABLE;
} }
} }
@ -869,6 +870,7 @@ frame_info_name(rb_frame_info_t *fi)
case FRAME_INFO_TYPE_IFUNC: case FRAME_INFO_TYPE_IFUNC:
default: default:
rb_bug("frame_info_name: unreachable"); rb_bug("frame_info_name: unreachable");
UNREACHABLE;
} }
} }
@ -890,6 +892,7 @@ frame_info_basename(rb_frame_info_t *fi)
case FRAME_INFO_TYPE_IFUNC: case FRAME_INFO_TYPE_IFUNC:
default: default:
rb_bug("frame_info_basename: unreachable"); rb_bug("frame_info_basename: unreachable");
UNREACHABLE;
} }
} }
@ -914,6 +917,7 @@ frame_info_filename(rb_frame_info_t *fi)
case FRAME_INFO_TYPE_IFUNC: case FRAME_INFO_TYPE_IFUNC:
default: default:
rb_bug("frame_info_filename: unreachable"); rb_bug("frame_info_filename: unreachable");
UNREACHABLE;
} }
} }
@ -938,6 +942,7 @@ frame_info_filepath(rb_frame_info_t *fi)
case FRAME_INFO_TYPE_IFUNC: case FRAME_INFO_TYPE_IFUNC:
default: default:
rb_bug("frame_info_filepath: unreachable"); rb_bug("frame_info_filepath: unreachable");
UNREACHABLE;
} }
} }