Fix warn base on emacs29