tcsh-6.19.00-004-remove-unused-variable.patch added

> remove unused variable.
This commit is contained in:
David Kaspar [Dee'Kej] 2016-05-03 12:45:23 +02:00
parent 3b4edba158
commit 53846b1a4f
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
From 1cec6d7d4387793a4a98c38313cfd74a8f5600b3 Mon Sep 17 00:00:00 2001
From: christos <christos>
Date: Thu, 28 May 2015 11:53:49 +0000
Subject: [PATCH] remove unused variable.
---
tw.color.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/tw.color.c b/tw.color.c
index 45dacc1..3969193 100644
--- a/tw.color.c
+++ b/tw.color.c
@@ -241,14 +241,11 @@ init(size_t colorlen, size_t extnum)
static int
color(Char x)
{
- int c;
static const char ccolors[] = "abcdefghx";
char *p;
if (Isupper(x)) {
x = Tolower(x);
- c |= TCSH_BOLD;
- } else
- c = 0;
+ }
if (x == '\0' || (p = strchr(ccolors, x)) == NULL)
return -1;
--
2.5.5

View File

@ -32,6 +32,7 @@ Patch000: tcsh-6.19.00-000-announcement.patch
Patch001: tcsh-6.19.00-001-remove-CFLAGS-for-gethost.patch
Patch002: tcsh-6.19.00-002-fix-error-messages.patch
Patch003: tcsh-6.19.00-003-avoid-gcc5-calloc-optimization.patch
Patch004: tcsh-6.19.00-004-remove-unused-variable.patch
# Downstream patches -- these should be always included when doing rebase:
@ -156,6 +157,7 @@ fi
tcsh-6.19.00-001-remove-CFLAGS-for-gethost.patch
tcsh-6.19.00-002-fix-error-messages.patch
tcsh-6.19.00-003-avoid-gcc5-calloc-optimization.patch (replaces tcsh-6.19.00-gcc5-calloc.patch)
tcsh-6.19.00-004-remove-unused-variable.patch
* Thu Apr 21 2016 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 6.19.00-6
- Drop tcsh-6.15.00-closem.patch - issue not reproducible, patch not accepted by upstream