1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/enc
Nobuyoshi Nakada b7e1eda932
Suppress warnings by gcc 10.1.0-RC-20200430
* Folding results should not be empty.

  If `OnigCodePointCount(to->n)` were 0, `for` loop using `fn`
  wouldn't execute and `ncs` elements are not initialized.

  ```
  enc/unicode.c:557:21: warning: 'ncs[0]' may be used uninitialized in this function [-Wmaybe-uninitialized]
    557 |  for (i = 0; i < ncs[0]; i++) {
        |                  ~~~^~~
  ```

* Cast to `enum yytokentype`

  Additional enums for scanner events by ripper are not included
  in `yytokentype`.

  ```
  ripper.y:7274:28: warning: implicit conversion from 'enum <anonymous>' to 'enum yytokentype' [-Wenum-conversion]
  ```
2020-05-04 12:28:24 +09:00
..
jis
trans more on NULL versus functions. 2020-02-07 14:24:19 +09:00
unicode Suppress warnings: reserved for numbered parameter 2020-04-05 18:24:59 +09:00
ascii.c
big5.c
cesu_8.c
cp949.c
depend Merge pull request #2991 from shyouhei/ruby.h 2020-04-08 13:28:13 +09:00
ebcdic.h
emacs_mule.c
encdb.c decouple internal.h headers 2019-12-26 20:45:12 +09:00
encinit.c.erb
euc_jp.c
euc_kr.c
euc_tw.c
gb2312.c
gb18030.c
gbk.c
iso_2022_jp.h
iso_8859.h
iso_8859_1.c
iso_8859_2.c
iso_8859_3.c
iso_8859_4.c
iso_8859_5.c
iso_8859_6.c
iso_8859_7.c
iso_8859_8.c
iso_8859_9.c
iso_8859_10.c
iso_8859_11.c
iso_8859_13.c
iso_8859_14.c
iso_8859_15.c
iso_8859_16.c
koi8_r.c
koi8_u.c
make_encmake.rb
Makefile.in Added tooldir variable 2020-04-05 09:26:57 +09:00
mktable.c
shift_jis.c
shift_jis.h
unicode.c Suppress warnings by gcc 10.1.0-RC-20200430 2020-05-04 12:28:24 +09:00
us_ascii.c
utf_7.h
utf_8.c
utf_16_32.h
utf_16be.c
utf_16le.c
utf_32be.c
utf_32le.c
windows_31j.c
windows_1250.c
windows_1251.c
windows_1252.c
windows_1253.c
windows_1254.c
windows_1257.c
x_emoji.h enc/x_emoji.h: fixed dead-links [ci skip] 2019-12-24 10:33:32 +09:00