]> git.ipfire.org Git - thirdparty/coreutils.git/commit
ls: port to Oracle Developer Studio 12.6
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 20 Nov 2024 06:55:48 +0000 (22:55 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 20 Nov 2024 06:55:48 +0000 (22:55 -0800)
commit38823913e33f7544cee2b98fd4031990f6490713
treeb6e46281f421e2b517f19b6fdcc94d1aaa4b17a9
parentd92df29a21e9cb0468b43dca8dac043c4710dac3
ls: port to Oracle Developer Studio 12.6

Oracle Developer Studio 12.6 for sparc mishandles
‘sizeof ((char []) {'x', 'y'})’: it says
“warning: null dimension: sizeof()” and then generates
the wrong length in data.  Work around the compiler bug
by counting sizes by hand, which may be a bit clearer anyway,
if a bit more error-prone.
* src/ls.c (BIN_STR): Remove.
(color_indicator): Spell out instead of using BIN_STR.
src/ls.c