I cloned the current make git repository:
https://git.savannah.gnu.org/git/emacs.git
Then I compiled it with GCC 11.1.0. It triggers the following error:
src/main.c:1954:13: error: writes 1 byte in a region of size 0
[-Werror=stringop-overflow=]
2006 | p[-1] = '\0';
| ~~~~~~^~~~~~
It compiles with GCC 8.3.0 though.
This error was introduced in GCC 10
https://gcc.gnu.org/gcc-10/changes.html#c-family as "Enhancements
to existing warnings".
To build it with GCC 11.1.0, one must add the flag: -Wno-stringop-overflow
when doing ./configure.
Regards,