[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 8d8272d02e3 13/18: Ignore -fanalyzer-null-argument in pgtkterm.c
From: |
Paul Eggert |
Subject: |
master 8d8272d02e3 13/18: Ignore -fanalyzer-null-argument in pgtkterm.c |
Date: |
Mon, 27 Jan 2025 02:06:10 -0500 (EST) |
branch: master
commit 8d8272d02e38ee3624cd3f16767f3c60fb3383ea
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>
Ignore -fanalyzer-null-argument in pgtkterm.c
* src/pgtkterm.c: Ignore -Wanalyzer-null-dereference.
I don’t have time to look into all the diagnostics,
but the ones I checked seemed to be false alarms with
gcc -std=gnu23 on x86-64, and we are ignoring this
diagnostic in other modules. This is GCC 14.2.1
20250110 (Red Hat 14.2.1-7).
---
src/pgtkterm.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/pgtkterm.c b/src/pgtkterm.c
index 1d679f0cf57..1f468300deb 100644
--- a/src/pgtkterm.c
+++ b/src/pgtkterm.c
@@ -22,6 +22,11 @@ along with GNU Emacs. If not, see
<https://www.gnu.org/licenses/>. */
interpretation of even the system includes. */
#include <config.h>
+/* Work around GCC bug 102671. */
+#if 10 <= __GNUC__
+# pragma GCC diagnostic ignored "-Wanalyzer-null-dereference"
+#endif
+
#include <cairo.h>
#include <fcntl.h>
#include <math.h>
- master updated (b06364f1b66 -> 1ed769a3cb7), Paul Eggert, 2025/01/27
- master f885806fdf1 02/18: Simplify make_formatted_string API, Paul Eggert, 2025/01/27
- master 17a8bf53f39 05/18: Fix x-show-tip bignum crash, Paul Eggert, 2025/01/27
- master 2e8ef091041 11/18: Protect against GCing of last_mouse_window, Paul Eggert, 2025/01/27
- master bcfd4d21b0a 01/18: Fix unlikely time zone abbreviation bug, Paul Eggert, 2025/01/27
- master c50e8c24247 04/18: Prefer make_formatted_string in svg_load_image, Paul Eggert, 2025/01/27
- master 028fae96614 03/18: Simplify building of color names in image.c, Paul Eggert, 2025/01/27
- master 6ff06ff738e 06/18: Beware large stack growth in pgtk_menu_show, Paul Eggert, 2025/01/27
- master 06fd3f4e98d 08/18: Use gtk_disable_setlocale, Paul Eggert, 2025/01/27
- master 8d8272d02e3 13/18: Ignore -fanalyzer-null-argument in pgtkterm.c,
Paul Eggert <=
- master f8b8dddce90 14/18: Minor format_string tuneup, Paul Eggert, 2025/01/27
- master a5c47258ffe 17/18: Fix unlikely eassert failure in invalid_radix_integer, Paul Eggert, 2025/01/27
- master f809302fe55 16/18: Fix unlikely eassert failure in xg_set_widget_bg, Paul Eggert, 2025/01/27
- master c0d83876f18 09/18: Avoid undefined behavior with botched pgtk menu, Paul Eggert, 2025/01/27
- master 1ed769a3cb7 18/18: Pacify -Wanalyzer-use-of-uninitialized-value, Paul Eggert, 2025/01/27
- master a1e4f6a35c7 07/18: Avoid unlikely int overflow., Paul Eggert, 2025/01/27
- master ff65cc9944d 10/18: Pacify GCC in pgtkselect malloc alignment, Paul Eggert, 2025/01/27
- master 728c7904fef 12/18: Pacify -fanalyzer-null-argument on pgtk_term_init, Paul Eggert, 2025/01/27
- master 901659bb704 15/18: Fix unlikely eassert failure in pgtk_enumerate_devices, Paul Eggert, 2025/01/27