core: fix warnings in abstract_text