Received: (at submit) by debbugs.gnu.org; 16 Dec 2024 23:36:36 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 16 18:36:36 2024 Received: from localhost ([127.0.0.1]:56691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tNKdg-0000tk-EB for submit <at> debbugs.gnu.org; Mon, 16 Dec 2024 18:36:36 -0500 Received: from lists.gnu.org ([209.51.188.17]:42516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1tNKdf-0000tc-2Z for submit <at> debbugs.gnu.org; Mon, 16 Dec 2024 18:36:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <stefankangas@HIDDEN>) id 1tNKde-0005to-Pd for bug-gnu-emacs@HIDDEN; Mon, 16 Dec 2024 18:36:34 -0500 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <stefankangas@HIDDEN>) id 1tNKdd-0000Ql-1S for bug-gnu-emacs@HIDDEN; Mon, 16 Dec 2024 18:36:34 -0500 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5d65b4ae632so4548410a12.2 for <bug-gnu-emacs@HIDDEN>; Mon, 16 Dec 2024 15:36:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734392191; x=1734996991; darn=gnu.org; h=content-transfer-encoding:to:subject:message-id:date:mime-version :from:from:to:cc:subject:date:message-id:reply-to; bh=YtnqvNUgTM/akW1Yj84/k8u2k9UlzjEWmAl96K3kDMA=; b=lvmXkxV4i1GpCEK0uLI+WqYC84/Ayess3l0ypqCHaAACC/4x0qm35dPocvbYpRJjQo trJK+IWQkW5P+iBQAXs6xuhFqU0Y9W0tucO+zGwODC0uv4Es73pekaMpDdGwQDqCk7HR kH5dkqUCT+RqUxVQ2cIBh4xKW5fZJvPguWqzZe07Kjo2SymLiqKoNHpXalBymwjN940/ Oc2WnDyBVkTJ48r7yObgemkeQOaLgfVM6vEOL5pIoATyg2AB9E8k6rDzPM5eL+0X1+/H WlpijROPp82ybpu5tOcHYpMIU3SCuNPCVIduAkBHX6fWPlH/GWEKLzPviFS5IJxP3MdY NKEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734392191; x=1734996991; h=content-transfer-encoding:to:subject:message-id:date:mime-version :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YtnqvNUgTM/akW1Yj84/k8u2k9UlzjEWmAl96K3kDMA=; b=MwSukBs9+vXPwabXiYT8jYVDGEEelwcNTAK53vk8C/aLVTZWxMMvdKRrmwkQ2pL2e6 Cre2Qha0ctiMbGpUYW5o3ecj4pT4+vOQ2qPUk7zAHS8S/rQJeR3NDDoR/fNeYvhv43fA 1C0IujHZtxQbUvF5TDvzSNZzc9Uw+JpBPLeuNncz79cP2uuaugvTR2RBbRO1+h+oh4Lz wiwQeva6q8+thfWJk8mmcIr7Z6HL7qMxN+NnC37/Nc6MxSU++b8Al0SZdxRAES33X7Hn BJlKiBSZBxwTNyv9u1LB5poZ0yXBplp8peYiPniu6R865nRjpllCNGbHdj452Yib18Jv H+rA== X-Gm-Message-State: AOJu0Yzx1BZXrs5Dw5RtaaPYswAD2G1W2e/Ox5kg4bC0H+qX/jZPoMA9 DavxbEDTclo4Mw+1ljAfVFL9jxk9Ber0GETPuQWZc9C/6z/pmaNwCHN8N8aQCNOqgMZycTnqT4s 3tq/AAo5DxfzCc01BZZzywExInXUW/any X-Gm-Gg: ASbGncuqP6wVvHXxjt69Igl0STmVxkHiWl/pC4W5IDaY7lvPbvZ1741FG9TQnU8YL93 vELxgNBV1fAQl0oFvYpotO6v8JaqucXW2cH9O+f8= X-Google-Smtp-Source: AGHT+IHoAoXMe04s7aa85n2+44Vn+ePTB/VbFo9E0Y+X/wCu/cX+nrHT0B4du6/qU2EP0OWY1HZfW4jR27ZZn6ktoA0= X-Received: by 2002:a05:6402:35c2:b0:5d0:ea2a:726c with SMTP id 4fb4d7f45d1cf-5d63c307086mr12348258a12.8.1734392190809; Mon, 16 Dec 2024 15:36:30 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 16 Dec 2024 23:36:29 +0000 From: Stefan Kangas <stefankangas@HIDDEN> MIME-Version: 1.0 Date: Mon, 16 Dec 2024 23:36:29 +0000 Message-ID: <CADwFkmng96-7WRXafm0aNVGk3QqaFgdZX1adeCWw_RrRu8UPxQ@HIDDEN> Subject: 31.0.50; No warning with set-advertised-calling-convention if function called in same file To: bug-gnu-emacs@HIDDEN Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=stefankangas@HIDDEN; helo=mail-ed1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) 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: =E2=80=98foo=E2=80=99 called with 0 arguments, but req= uires 1 The warning is displayed if I move the call to a different file.
Stefan Kangas <stefankangas@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#74919
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.