Closed acid-bong closed 1 year ago
Most likely just Gentoo thing. I assume they made -Wpedantic
turned on by default for their flavor of gcc.
C standard does indeed forbids empty arrays, but I can't come up with a clean way to make this thing comply with -Wpedantic
, while keeping it simple and easy to modify. I think it's easier for you just to comment out mentions of features
.
Finally decided to revisit the issue.
-pedantic
is not in the flavour per se, but definitely in the c99
wrapper:
...
exec x86_64-pc-linux-gnu-gcc -std=c99 -pedantic -U_FORTIFY_SOURCE ${1+"$@"}
# the latter might be the result of using hardened profile
As i don't know how to rewrite the feature
macro, for me the temporary solution would be CC = c99 -Wno-pedantic
, which just disables that flag
You don't really need to rewrite the macro, you can just comment out this line in hb.c
:
hb_feature_t features[] = { };
and then replace its usage with NULL
:
hb_shape(font, buffer, NULL, 0);
(I shoulda replied sooner) I immediately edited it like you said and it worked since. Cheers
OS: Gentoo, all USE flags mentioned are set by default GCC: 11.3.0,
USE="cxx fortran multilib nls nptl openmp pie sanitize ssp"
glibc: 2.36,USE="multiarch multilib ssp stack-realign static-libs"
harfbuzz: 5.3.1 (don't think it matters much, the main problem seems to be syntax) st: 0.9 patch used: alpha+scrollback_ringbufferThe
make
output:The complete build is hosted at sourcehut
Comparison:
st
compiled normally (I don't wanna risk it on Gentoo and upgrade the compiler yet)