projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62c2afe
)
Pacify GCC 14 -Wclobbered in eval.c
author
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 30 Apr 2024 08:20:12 +0000
(
01:20
-0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 30 Apr 2024 08:26:23 +0000
(
01:26
-0700)
* src/eval.c: Ignore -Wclobbered.
src/eval.c
patch
|
blob
|
history
diff --git
a/src/eval.c
b/src/eval.c
index fd388706108865912eea001063cdeeeaecbc3e82..d3761c31f882fa135c9e0d537744e26ff6196e3b 100644
(file)
--- a/
src/eval.c
+++ b/
src/eval.c
@@
-1237,6
+1237,12
@@
usage: (catch TAG BODY...) */)
return internal_catch (tag, Fprogn, XCDR (args));
}
+/* Work around GCC bug 61118
+ <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61118>. */
+#if GNUC_PREREQ (4, 9, 0)
+# pragma GCC diagnostic ignored "-Wclobbered"
+#endif
+
/* Assert that E is true, but do not evaluate E. Use this instead of
eassert (E) when E contains variables that might be clobbered by a
longjmp. */