* [PATCH] Remove warning-generating name args for constructors in srecode fields-test
@ 2021-12-02 5:44 Michael Levine
2021-12-02 8:06 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Michael Levine @ 2021-12-02 5:44 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1.1: Type: text/plain, Size: 234 bytes --]
Hi everyone,
Attached is a patch for the test file lisp/cedet/srecode/fields-test.el to
remove warning-generating name args for a few constructors. When applied,
the warnings are gone when you run make check.
Best Wishes,
Michael
[-- Attachment #1.2: Type: text/html, Size: 329 bytes --]
[-- Attachment #2: 0001-Removed-warning-generating-name-args-to-constructors.patch --]
[-- Type: text/x-patch, Size: 2471 bytes --]
From f4644a28c1bcef5f19b6aae5a64cef4c098e089b Mon Sep 17 00:00:00 2001
From: Michael Levine <melevine45@gmail.com>
Date: Thu, 2 Dec 2021 00:34:15 -0500
Subject: [PATCH] Removed warning-generating name args to constructors
---
test/lisp/cedet/srecode/fields-tests.el | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
diff --git a/test/lisp/cedet/srecode/fields-tests.el b/test/lisp/cedet/srecode/fields-tests.el
index 5f634a5e4c..c03e60fac5 100644
--- a/test/lisp/cedet/srecode/fields-tests.el
+++ b/test/lisp/cedet/srecode/fields-tests.el
@@ -57,8 +57,7 @@ srecode-field-utest-impl
(end-of-line)
(forward-word -1)
- (setq f (srecode-field "Test"
- :name "TEST"
+ (setq f (srecode-field :name "TEST"
:start 6
:end 8))
@@ -99,19 +98,18 @@ srecode-field-utest-impl
(reg nil)
(fields
(list
- (srecode-field "Test1" :name "TEST-1" :start 5 :end 10)
- (srecode-field "Test2" :name "TEST-2" :start 15 :end 20)
- (srecode-field "Test3" :name "TEST-3" :start 25 :end 30)
+ (srecode-field :name "TEST-1" :start 5 :end 10)
+ (srecode-field :name "TEST-2" :start 15 :end 20)
+ (srecode-field :name "TEST-3" :start 25 :end 30)
- (srecode-field "Test4" :name "TEST-4" :start 35 :end 35))
+ (srecode-field :name "TEST-4" :start 35 :end 35))
))
(when (not (= (length srecode-field-archive) 4))
(error "Region Test: Found %d fields. Expected 4"
(length srecode-field-archive)))
- (setq reg (srecode-template-inserted-region "REG"
- :start 4
+ (setq reg (srecode-template-inserted-region :start 4
:end 40))
(srecode-overlaid-activate reg)
@@ -183,10 +181,10 @@ srecode-field-utest-impl
;; Test variable linkage.
(let* ((srecode-field-archive nil)
- (f1 (srecode-field "Test1" :name "TEST" :start 6 :end 8))
- (f2 (srecode-field "Test2" :name "TEST" :start 28 :end 30))
- (f3 (srecode-field "Test3" :name "NOTTEST" :start 35 :end 40))
- (reg (srecode-template-inserted-region "REG" :start 4 :end 40)))
+ (f1 (srecode-field :name "TEST" :start 6 :end 8))
+ (f2 (srecode-field :name "TEST" :start 28 :end 30))
+ (f3 (srecode-field :name "NOTTEST" :start 35 :end 40))
+ (reg (srecode-template-inserted-region :start 4 :end 40)))
(srecode-overlaid-activate reg)
(when (not (string= (srecode-overlaid-text f1)
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Remove warning-generating name args for constructors in srecode fields-test
2021-12-02 5:44 [PATCH] Remove warning-generating name args for constructors in srecode fields-test Michael Levine
@ 2021-12-02 8:06 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-12-02 8:06 UTC (permalink / raw)
To: Michael Levine; +Cc: emacs-devel
Michael Levine <melevine45@gmail.com> writes:
> Attached is a patch for the test file
> lisp/cedet/srecode/fields-test.el to remove warning-generating name
> args for a few constructors. When applied, the warnings are gone when
> you run make check.
Thanks; applied to Emacs 29.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-02 8:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-02 5:44 [PATCH] Remove warning-generating name args for constructors in srecode fields-test Michael Levine
2021-12-02 8:06 ` Lars Ingebrigtsen
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).