all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Rudolf Adamkovič" <salutis@me.com>
Cc: 55595@debbugs.gnu.org
Subject: bug#55595: 29.0.50; Compilation warnings on macOS
Date: Mon, 23 May 2022 18:53:42 +0300	[thread overview]
Message-ID: <83pmk45jp5.fsf@gnu.org> (raw)
In-Reply-To: <m2wnecmf1k.fsf@me.com> (bug-gnu-emacs@gnu.org)

> Date: Mon, 23 May 2022 17:42:15 +0200
> From:  Rudolf Adamkovič via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> 
> FYI, I see the following compilation warnings (@ commit 5a1a67a256):
> 
>   CC       comp.o
> comp.c:2816:24: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
> #pragma GCC diagnostic pop
>                        ^
> comp.c:4698:24: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
> #pragma GCC diagnostic pop
>                        ^
> comp.c:4714:24: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
> #pragma GCC diagnostic pop
>                        ^
> comp.c:4967:24: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
> #pragma GCC diagnostic pop
>                        ^
> comp.c:5351:11: warning: variable 'data_ephemeral_vec' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
>       if (!recursive_load)
>           ^~~~~~~~~~~~~~~
> comp.c:5365:28: note: uninitialized use occurs here
>       data_ephemeral_vec = data_ephemeral_vec;
>                            ^~~~~~~~~~~~~~~~~~
> comp.c:5351:7: note: remove the 'if' if its condition is always true
>       if (!recursive_load)
>       ^~~~~~~~~~~~~~~~~~~~
> comp.c:5345:46: note: initialize the variable 'data_ephemeral_vec' to silence this warning
>       Lisp_Object volatile data_ephemeral_vec;
>                                              ^
>                                               = NULL

Is this GCC or Clang?

If the latter, I guess we should disable -Wunknown-pragmas for it.

The last warning is silly, but I guess it cannot harm anyone to
initialize the variable where it's declared.





  reply	other threads:[~2022-05-23 15:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-23 15:42 bug#55595: 29.0.50; Compilation warnings on macOS Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-23 15:53 ` Eli Zaretskii [this message]
2022-05-23 16:10   ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-23 16:28     ` Eli Zaretskii
2022-06-02 18:36       ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-02 19:10         ` Eli Zaretskii
2022-06-03 19:37           ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-04  6:06             ` Eli Zaretskii
2022-06-05 10:51               ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-05 10:59                 ` Eli Zaretskii
2022-11-20  0:07                   ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-20  7:29                     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83pmk45jp5.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=55595@debbugs.gnu.org \
    --cc=salutis@me.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.