]> git.eshelyaron.com Git - emacs.git/commitdiff
Use -Wanalyzer-deref-before-check in GCC 14
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 18 Feb 2024 08:12:28 +0000 (00:12 -0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 28 Feb 2024 17:35:48 +0000 (18:35 +0100)
* src/marker.c: Work around GCC bug 113253 only if GCC 13.
The GCC bug reportedly will be fixed in GCC 14.

(cherry picked from commit 4a8d3c5b75b28167300d2df061d053935809d43e)

src/marker.c

index 0101e144b4d69a70fa58668f7375328c4fca1075..1559dd52719eea71a305eebe17e4709578bbed43 100644 (file)
@@ -21,7 +21,7 @@ along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.  */
 #include <config.h>
 
 /* Work around GCC bug 113253.  */
-#if 13 <= __GNUC__
+#if __GNUC__ == 13
 # pragma GCC diagnostic ignored "-Wanalyzer-deref-before-check"
 #endif