From 53846b1a4fb0243c329361ed0ce7942fcc02f224 Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Tue, 3 May 2016 12:45:23 +0200 Subject: [PATCH] tcsh-6.19.00-004-remove-unused-variable.patch added > remove unused variable. --- tcsh-6.19.00-004-remove-unused-variable.patch | 32 +++++++++++++++++++ tcsh.spec | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 tcsh-6.19.00-004-remove-unused-variable.patch diff --git a/tcsh-6.19.00-004-remove-unused-variable.patch b/tcsh-6.19.00-004-remove-unused-variable.patch new file mode 100644 index 0000000..4e8ea4d --- /dev/null +++ b/tcsh-6.19.00-004-remove-unused-variable.patch @@ -0,0 +1,32 @@ +From 1cec6d7d4387793a4a98c38313cfd74a8f5600b3 Mon Sep 17 00:00:00 2001 +From: 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 + diff --git a/tcsh.spec b/tcsh.spec index 0f5fb20..38614ac 100644 --- a/tcsh.spec +++ b/tcsh.spec @@ -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] - 6.19.00-6 - Drop tcsh-6.15.00-closem.patch - issue not reproducible, patch not accepted by upstream