unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Mattias Engdegård" <mattiase@acm.org>
To: emacs-devel <emacs-devel@gnu.org>, Paul Eggert <eggert@cs.ucla.edu>
Subject: more macOS Clang assume warnings
Date: Mon, 24 Aug 2020 20:54:53 +0200	[thread overview]
Message-ID: <5B1F57F1-C671-40D8-8272-2C90E42F2538@acm.org> (raw)

The latest assume reformulation caused several warnings like the following when building with Clang:

../../emacs/src/xwidget.h:171:72: warning: control reaches end of non-void
      function [-Wreturn-type]
INLINE struct xwidget *lookup_xwidget (Lisp_Object obj) { eassume (0); }
                                                                       ^
../../emacs/src/eval.c:1571:1: warning: function declared 'noreturn' should not
      return [-Winvalid-noreturn]
}
^

This is with Apple clang version 11.0.0 (clang-1100.0.33.17) but it looks like the same applies to clang trunk.




             reply	other threads:[~2020-08-24 18:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-24 18:54 Mattias Engdegård [this message]
2020-08-25  0:23 ` more macOS Clang assume warnings Paul Eggert
2020-08-26  0:01   ` Bruno Haible
2020-08-26  0:44     ` Paul Eggert
2020-08-27  2:47       ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=5B1F57F1-C671-40D8-8272-2C90E42F2538@acm.org \
    --to=mattiase@acm.org \
    --cc=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).