It gives the same error:
src/main.c:1954:16: error: writes 1 byte in a region of size 0
[-Werror=stringop-overflow=]
1954 | *(p - 1) = '\0';
| ~^~
Le 21/06/2021 à 16:12, David A. Wheeler a écrit :
p[-1] = '\0';
Is this just a style warning being turned into
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';
| ~~^~