ls-icons
ls-icons copied to clipboard
lib/careadlinkat.c
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
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
Has anyone found a solution to this? I got the same error. I was using alacritty with zsh (Oh-my-zsh)
Have the same problem in Manjaro
same on an openSUSE tumbleweed container