Avoid compiler warnings on macOS (bug#55595)

* configure.ac: Don't use -Wunknown-pragmas with Clang.

* src/comp.c (load_comp_unit): Avoid Clang compilation warning.
This commit is contained in:
Eli Zaretskii 2022-05-23 19:26:18 +03:00
parent 5a1a67a256
commit 8c4498e62e
2 changed files with 2 additions and 1 deletions

View file

@ -1084,6 +1084,7 @@ AS_IF([test $gl_gcc_warnings = no],
if test "$emacs_cv_clang" = yes; then
nw="$nw -Wdouble-promotion"
nm="$nm -Wunknown-pragmas"
fi
# This causes too much noise in the MinGW build.

View file

@ -5342,7 +5342,7 @@ load_comp_unit (struct Lisp_Native_Comp_Unit *comp_u, bool loading_dump,
are necessary exclusively during the first load. Once these
are collected we don't have to maintain them in the heap
forever. */
Lisp_Object volatile data_ephemeral_vec;
Lisp_Object volatile data_ephemeral_vec = Qnil;
/* In case another load of the same CU is active on the stack
all ephemeral data is hold by that frame. Re-writing
'data_ephemeral_vec' would be not only a waste of cycles but