[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: warnings compiling emacs28 with gcc 12.1
From: |
Lars Ingebrigtsen |
Subject: |
Re: warnings compiling emacs28 with gcc 12.1 |
Date: |
Thu, 28 Jul 2022 20:13:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
"Jose A. Ortega Ruiz" <jao@gnu.org> writes:
> Fair enough. A curious fact is that the master branch compiles cleanly
> with the same GCC version, without any warning at all in fact. I guess
> someone already took the time to pacify non-sense warnings.
Yes, they were fixed on the trunk by:
commit 0f731c49e6a8ccf3aa4c30c3f8ca82ed0a2cefb7
Author: Paul Eggert <eggert@cs.ucla.edu>
AuthorDate: Thu May 12 17:01:10 2022 -0700
Pacify GCC 12 in default developer build
For instance:
* src/term.c (Fsuspend_tty): Don’t look at a pointer after freeing
it, even just to test it for equality with some other pointer, as
this has undefined behavior in C and GCC 12 diagnoses this.