File Fix-unused-variable-prev-in-strtoken.patch of Package awesfx

From 0581458acc5f28ef50742805cf37278d979b1c12 Mon Sep 17 00:00:00 2001
From: Takashi Iwai <tiwai@suse.de>
Date: Thu, 5 Sep 2019 14:07:33 +0200
Subject: [PATCH] Fix unused variable prev in strtoken()

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 awelib/bool.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/awelib/bool.c b/awelib/bool.c
index ebb4c6e6d65a..f89deb8a52f1 100644
--- a/awelib/bool.c
+++ b/awelib/bool.c
@@ -110,10 +110,10 @@ char *strtoken(char *src)
 				break;
 			vptr++;
 		} else if (*vptr == '"' || *vptr == '\'') {
-			int prev, quote;
-			prev = quote = *vptr;
+			int quote;
+			quote = *vptr;
 			remove_letter(vptr);
-			for (; *vptr; prev = *vptr, vptr++) {
+			for (; *vptr; vptr++) {
 				if (*vptr == '\\') {
 					remove_letter(vptr);
 					if (*vptr)
-- 
2.16.4
openSUSE Build Service is sponsored by