ls-icons icon indicating copy to clipboard operation
ls-icons copied to clipboard

lib/careadlinkat.c

Open irfanhilmi000 opened this issue 4 years ago • 4 comments

lib/careadlinkat.c: In function 'careadlinkat': cc1: error: function may return address of local variable [-Werror=return-local-addr] lib/careadlinkat.c:73:8: note: declared here 73 | char stack_buf[1024]; | ^~~~~~~~~ cc1: all warnings being treated as errors make[2]: *** [Makefile:10024: lib/careadlinkat.o] Error 1 make[2]: Leaving directory '/media/root/download/icons-in-terminal/ls-icons' make[1]: *** [Makefile:12675: all-recursive] Error 1 make[1]: Leaving directory '/media/root/download/icons-in-terminal/ls-icons' make: *** [Makefile:6835: all] Error 2

help

irfanhilmi000 avatar Sep 08 '20 15:09 irfanhilmi000

Don't know how to fix this

lib/careadlinkat.c: In function 'careadlinkat':
cc1: error: function may return address of local variable [-Werror=return-local-addr]
lib/careadlinkat.c:73:8: note: declared here
   73 |   char stack_buf[1024];
      |        ^~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:10027: lib/careadlinkat.o] Error 1
make[2]: Leaving directory '/home/wwahab/src/ls-icons'
make[1]: *** [Makefile:12678: all-recursive] Error 1
make[1]: Leaving directory '/home/wwahab/src/ls-icons'
make: *** [Makefile:6838: all] Error 2

wari avatar May 01 '21 09:05 wari

Has anyone found a solution to this? I got the same error. I was using alacritty with zsh (Oh-my-zsh)

MuizU avatar Jul 13 '21 09:07 MuizU

Have the same problem in Manjaro

Vamporelol avatar Jul 24 '21 16:07 Vamporelol

same on an openSUSE tumbleweed container

Ultra980 avatar Nov 30 '22 12:11 Ultra980