1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext
Yusuke Endoh 8bd27c547c ext/json/parser/prereq.mk: remove type-limit warning if char is unsigned
Ragel generates a code `0 <= (*p)` where `*p` is char.
As char is unsigned by default on arm and RISC-V, it is warned by gcc:

```
compiling parser.c
parser.c: In function ‘JSON_parse_string’:
parser.c:1566:2: warning: comparison is always true due to limited range of data type [-Wtype-limits]
  if ( 0 <= (*p) && (*p) <= 31 )
  ^
parser.c:1596:2: warning: comparison is always true due to limited range of data type [-Wtype-limits]
  if ( 0 <= (*p) && (*p) <= 31 )
  ^
```

This change removes the warning by substituting the condition with
`0 <= (signed char)(*p)`.
2020-05-14 00:44:35 +09:00
..
-test- sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
bigdecimal ext/bigdecimal/bigdecimal.c, ext/date/date_core.c: undef NDEBUG 2020-05-13 13:49:21 +09:00
cgi/escape sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
continuation sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
coverage sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
date ext/bigdecimal/bigdecimal.c, ext/date/date_core.c: undef NDEBUG 2020-05-13 13:49:21 +09:00
dbm sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
digest sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
etc sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
fcntl sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
fiber Update dependencies 2019-11-18 23:16:22 +09:00
fiddle ext/fiddle/extconf.rb: Fix the condition of libffi <= 3.1 2020-05-13 10:57:14 +09:00
gdbm sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
io sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
json ext/json/parser/prereq.mk: remove type-limit warning if char is unsigned 2020-05-14 00:44:35 +09:00
monitor sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
nkf sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
objspace sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
openssl [ruby/openssl] Ruby/OpenSSL 2.2.0 2020-05-13 15:47:51 +09:00
pathname sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
psych sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
pty sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
racc/cparse sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
rbconfig/sizeof sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
readline sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
ripper sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
rubyvm Added depend files 2019-07-14 01:31:29 +09:00
sdbm sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
socket sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
stringio sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
strscan sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
syslog sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
win32 Include ruby/assert.h in ruby/ruby.h so that assertions can be there 2019-07-14 17:58:03 +09:00
win32ole win32ole: separate global variable declarations and definitions 2020-05-10 21:37:59 +09:00
zlib sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
.document
extmk.rb Configure static extensions only if in charge 2019-11-19 15:11:41 +09:00
Setup
Setup.atheos
Setup.nt