[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #60398] [PATCH] contrib/mm/m.tmac: initialize two strings "let*..."
From: |
Bjarni Ingi Gislason |
Subject: |
[bug #60398] [PATCH] contrib/mm/m.tmac: initialize two strings "let*..." to avoid warnings |
Date: |
Wed, 14 Apr 2021 18:37:38 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
URL:
<https://savannah.gnu.org/bugs/?60398>
Summary: [PATCH] contrib/mm/m.tmac: initialize two strings
"let*..." to avoid warnings
Project: GNU troff
Submitted by: bjarniig
Submitted on: Wed 14 Apr 2021 10:37:36 PM UTC
Category: Macro - mm
Severity: 3 - Normal
Item Group: Warning/Suspicious behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
>From 07581b1ca7431f4a4ca7c2f57b5abd1fc409a9d1 Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Date: Wed, 14 Apr 2021 22:33:45 +0000
Subject: [PATCH] contrib/mm/m.tmac: initialize two strings "let*..." to avoid
warnings
Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
contrib/mm/m.tmac | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index bc9dcddf..1540568e 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -3500,7 +3500,9 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%]
.\" .IA [name [title]]
.nr let*ia-n 0 1
.de IA
-.if \\n[.$] .ds let*ia-name!\\n+[let*ia-n] \\$1
+.ds let*ia-name!\\n+[let*ia-n]\" initialize to avoid warnings
+.ds let*ia-title!\\n[let*ia-n]\" ditto
+.if \\n[.$] .ds let*ia-name!\\n[let*ia-n] \\$1
.if \\n[.$]>1 .ds let*ia-title!\\n[let*ia-n] \\$2
.ev let@ev
.init@reset
@@ -3517,7 +3519,9 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%]
.\" .WA [name [title]]
.nr let*wa-n 0 1
.de WA
-.if \\n[.$] .ds let*wa-name!\\n+[let*wa-n] \\$1
+.ds let*wa-name!\\n+[let*wa-n]\" initialize to avoid a warning
+.ds let*wa-title!\\n[let*wa-n]\" ditto
+.if \\n[.$] .ds let*wa-name!\\n[let*wa-n] \\$1
.if \\n[.$]>1 .ds let*wa-title!\\n[let*wa-n] \\$2
.ev let@ev
.init@reset
--
2.30.2
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60398>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #60398] [PATCH] contrib/mm/m.tmac: initialize two strings "let*..." to avoid warnings,
Bjarni Ingi Gislason <=