diff options
| author | Paul Eggert | 2022-04-08 10:18:53 -0700 |
|---|---|---|
| committer | Paul Eggert | 2022-04-08 10:19:21 -0700 |
| commit | 022a1f48a4e2005be7aa66b67eb2f17f8386c853 (patch) | |
| tree | 34858a594afd35ca35fd7a2fbb3821c1d5685147 | |
| parent | c2d78d09c1eca4df0836d0fb41562ac0ae1071d6 (diff) | |
| download | emacs-022a1f48a4e2005be7aa66b67eb2f17f8386c853.tar.gz emacs-022a1f48a4e2005be7aa66b67eb2f17f8386c853.zip | |
Fix pacifying gcc -Wanalyzer-null-dereference
* src/xterm.c (handle_one_xevent): Use eassume not eassert.
eassert (X)’s suppress_checking does not let GCC assume X.
| -rw-r--r-- | src/xterm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index 9b0fe6f3f7b..dc06df246c4 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -13930,7 +13930,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 13930 | 13930 | ||
| 13931 | if (x_dnd_in_progress || x_dnd_waiting_for_finish) | 13931 | if (x_dnd_in_progress || x_dnd_waiting_for_finish) |
| 13932 | { | 13932 | { |
| 13933 | eassert (hold_quit); | 13933 | eassume (hold_quit); |
| 13934 | 13934 | ||
| 13935 | *hold_quit = inev.ie; | 13935 | *hold_quit = inev.ie; |
| 13936 | EVENT_INIT (inev.ie); | 13936 | EVENT_INIT (inev.ie); |