[FIXED] GCC 15 会导致 Emacs 编译失败,请使用 -std=gnu17

如题,config的时候加上 compiler flag -std=gnu17

CFLAGS='-std=gnu17' ./configure ...

不过估计很快上游就会fix吧…

原因是 GCC15 默认使用 C23 标准,emacs的C源码里面有一小部分目前还不符合C23规范。

The C part of Emacs is portable to C99 or later…

At some point in the future the base C dialect will no doubt change to something later than C99.

所以 Emacs 现阶段的目标是 C11.


这个我就不清楚了,不过emacs manual里面说明了编译错误算bug,我已经提交了bug report。主要是考虑到arch linux 和msys2已经升级到gcc15了,手动编译的用户可能会受影响

目前是 C99,当然也应该兼容后来的标准。

已修复