diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-19 16:43:20 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:43 -0400 |
commit | 00be5846e4793b718da19dafec3f4ecf2d6d0692 (patch) | |
tree | c22f1e3bf830119d67a583f7890df9acc5c48fa3 /misc | |
parent | cffa1162758a67dd73da6cd911d593f67f05ea7b (diff) |
Fix non RUBY_DEBUG build warnings
On non RUBY_DEBUG builds, assert() compiles to nothing and the compiler
warns about uninitialized variables in those code paths. Replace
those asserts with rb_bug() to fix the warnings and do the assert in
all builds. Since yjit_asm_tests.c compiles outside of Ruby, it needed
a distinct version of rb_bug().
Also put YJIT_STATS check for function delcaration that is only defined
in YJIT_STATS builds.
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/test_yjit_asm.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/test_yjit_asm.sh b/misc/test_yjit_asm.sh index 546acf39c9..1498789246 100755 --- a/misc/test_yjit_asm.sh +++ b/misc/test_yjit_asm.sh @@ -3,7 +3,7 @@ set -e set -x -clang -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wshorten-64-to-32 yjit_asm.c yjit_asm_tests.c -o asm_test +clang -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wshorten-64-to-32 yjit_asm_tests.c -o asm_test ./asm_test |