From: Stefan Kangas <stefankangas@gmail.com>
To: 74919@debbugs.gnu.org
Subject: bug#74919: 31.0.50; No warning with set-advertised-calling-convention if function called in same file
Date: Mon, 16 Dec 2024 23:36:29 +0000 [thread overview]
Message-ID: <CADwFkmng96-7WRXafm0aNVGk3QqaFgdZX1adeCWw_RrRu8UPxQ@mail.gmail.com> (raw)
Severity: minor
Create and byte-compile a file with this content:
;; -*- lexical-binding: t; -*-
(defun foo (&optional a) a)
(set-advertised-calling-convention 'foo '(a) '"31.1")
(foo)
Note that there is no warning.
Expected is this warning:
foo.el:4:2: Warning: ‘foo’ called with 0 arguments, but requires 1
The warning is displayed if I move the call to a different file.
reply other threads:[~2024-12-16 23:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=CADwFkmng96-7WRXafm0aNVGk3QqaFgdZX1adeCWw_RrRu8UPxQ@mail.gmail.com \
--to=stefankangas@gmail.com \
--cc=74919@debbugs.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).