1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/chinese
Dimitry Andric 0efce95397 chinese/c2t: fix "error: address of register variable requested"
During an exp-run for llvm 13 (see bug 258209), it turned out that
chinese/c2t fails to build with clang 13:

cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -DCHINDICT=\"/usr/local/share/chinese/gb/TONEPY.tit\" -c c2t.c
c2t.c:99:3: error: address of register variable requested
  hz[2] = '\0';
  ^~
c2t.c:107:7: error: address of register variable requested
      hz[0] = (char)eka;
      ^~
c2t.c:108:7: error: address of register variable requested
      hz[1] = (char)toka;
      ^~
c2t.c:113:8: error: address of register variable requested
          if (hz[0] != (*pipo)[i] || hz[1] != (*pipo)[i+1]) continue;
              ^~
c2t.c:113:31: error: address of register variable requested
          if (hz[0] != (*pipo)[i] || hz[1] != (*pipo)[i+1]) continue;
                                     ^~
c2t.c:133:36: error: address of register variable requested
                fprintf(miss_chars, "%c", hz[0]);
                                          ^~
c2t.c:134:30: error: address of register variable requested
                fprintf(miss_chars, "%c ", hz[1]);
                                           ^~
c2t.c:143:17: error: address of register variable requested
                        printf("%c", hz[0]);
                                     ^~
c2t.c:144:18: error: address of register variable requested
                        printf("%c ", hz[1]);
                                      ^~
9 errors generated.

As indicated, arrays shouldn't be register variables as they don't have
addresses. In general, the register keyword is deprecated and should no
longer be used.

To fix this, use a command line flag to define "register" to empty.

PR:		258465
Approved by:	maintainer timeout (2 weeks)
MFH:		2021Q4
2021-10-02 13:19:56 +02:00
..
arphicttf Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
aterm chinese/aterm: Add CPE information 2021-08-31 19:49:55 +00:00
auto-cn-l10n Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
auto-tw-l10n Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
autoconvert Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
big5width Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
bitchx Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
brise One more small cleanup, forgotten yesterday. 2021-04-07 10:09:01 +02:00
bsdconv-opencc Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
bug5 Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
c2t chinese/c2t: fix "error: address of register variable requested" 2021-10-02 13:19:56 +02:00
cconv Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
celvis Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
chiconv Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
CJKUnifonts Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
cless Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
cnprint Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
CNS11643-font Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
dictd-database Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
enscript Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
eterm Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
fandol Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
fcitx Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
fcitx5-chewing Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
fcitx5-chinese-addons devel/libfmt: Update to 8.0.0 2021-07-22 02:11:51 +08:00
fcitx5-rime Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
fcitx5-table-extra Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
fcitx5-table-other Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
fcitx-chewing Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
fcitx-cloudpinyin Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
fcitx-configtool Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
fcitx-libpinyin cleanup: drop support for EOL FreeBSD 11.X 2021-09-30 23:23:30 +02:00
fcitx-rime Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
fcitx-table-extra Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
fcitx-ui-light Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
fireflyttf Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
font-std Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
fortunetw Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
FreeWnn-lib Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
FreeWnn-server Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
gb2jis Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
gb2ps Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
gcin Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
gcin-gtk3 Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
gcin-qt5 Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
gydict Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
hc Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
ibus-cangjie chinese/{ibus-,lib,py}cangjie: miscellaneous cleanups and improvements 2021-08-29 11:10:44 +00:00
ibus-chewing Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
ibus-libpinyin cleanup: drop support for EOL FreeBSD 11.X 2021-09-30 23:23:30 +02:00
ibus-pinyin Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
ibus-rime Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
ibus-table-chinese chinese/ibus-table-chinese: mark BROKEN (does not build) 2021-05-17 20:40:06 +03:00
jis2gb Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
kcfonts Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
libcangjie chinese/{ibus-,lib,py}cangjie: miscellaneous cleanups and improvements 2021-08-29 11:10:44 +00:00
libchewing Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
libime Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
libime-jyutping Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
libpinyin cleanup: drop support for EOL FreeBSD 11.X 2021-09-30 23:23:30 +02:00
libreoffice-zh_CN editors/libreoffice: update to 7.2.1 release (+) 2021-09-17 04:14:10 +10:00
libreoffice-zh_TW editors/libreoffice: update to 7.2.1 release (+) 2021-09-17 04:14:10 +10:00
librime devel/yaml-cpp: Update to 0.7.0 2021-07-13 11:07:26 +02:00
libtabe Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
linux-wps-office-zh_CN *: Clean up some things 2021-06-19 17:13:17 +02:00
lunar Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
moettf Deorbit RESTRICTED && NO_CDROM, part two. 2021-05-06 13:47:48 +02:00
muni Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
oicq Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
opencc Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
opendesktop-fonts Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
oto Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
p5-Date-Chinese Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
p5-Encode-CNMap Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
p5-Encode-HanConvert Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
p5-Encode-HanExtra Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
p5-Lingua-Han-PinYin Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
p5-Lingua-Han-Utils Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
p5-Lingua-ZH-HanDetect Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
p5-Lingua-ZH-Keywords Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
p5-Lingua-ZH-Numbers Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
p5-Lingua-ZH-Romanize-Pinyin One more small cleanup, forgotten yesterday. 2021-04-07 10:09:01 +02:00
p5-Lingua-ZH-Segment Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
p5-Lingua-ZH-Summarize Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
p5-Lingua-ZH-TaBE Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
p5-Lingua-ZH-Toke Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
p5-Lingua-ZH-WordSegmenter Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
p5-Lingua-ZH-Wrap Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
p5-Text-Greeking-zh_TW Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
pcmanx Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
php-opencc Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
phpbb3-tw Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
phpbb-tw Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
pycangjie chinese/{ibus-,lib,py}cangjie: miscellaneous cleanups and improvements 2021-08-29 11:10:44 +00:00
pyzy Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
qe Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-array Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-bopomofo Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-cangjie Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-cantonese chinese/rime-cantonese: Change LICENSE_PERMS_ODbL 2021-05-22 02:27:03 +08:00
rime-combo-pinyin Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-data-full Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-double-pinyin Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-emoji Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-essay Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-ipa Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-jyutping Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-luna-pinyin Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-middle-chinese Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-pinyin-simp Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-prelude Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-quick Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-scj Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-soutzoe Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-stenotype Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-stroke Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-terra-pinyin Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-wubi Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
rime-wugniu Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
scim-fcitx Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
scim-pinyin Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
scim-tables Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
sourcehansans-sc-otf One more small cleanup, forgotten yesterday. 2021-04-07 10:09:01 +02:00
sourcehansans-tc-otf One more small cleanup, forgotten yesterday. 2021-04-07 10:09:01 +02:00
sourcehanserif-sc-otf One more small cleanup, forgotten yesterday. 2021-04-07 10:09:01 +02:00
sourcehanserif-tc-otf One more small cleanup, forgotten yesterday. 2021-04-07 10:09:01 +02:00
taipeisanstc One more small cleanup, forgotten yesterday. 2021-04-07 10:09:01 +02:00
tin Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
tintin++ Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
ttf2pt1 Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
ttfm chinese/ttfm: prepare for freetype2 update 2021-08-06 11:48:47 +02:00
ve Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
wenju Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
wordpress-zh_CN */wordpress-*: Update to 5.8 2021-09-03 06:26:52 +02:00
wordpress-zh_TW */wordpress-*: Update to 5.8 2021-09-03 06:26:52 +02:00
Makefile */*: Remove expired ports: 2021-06-26 20:31:20 +02:00
Makefile.inc Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00