From 77df00ad79d39c68ea2156eb1843eae45cc30c73 Mon Sep 17 00:00:00 2001 From: Juho Hiltunen Date: Sun, 23 Oct 2022 17:31:14 +0300 Subject: [PATCH] cleanup: fix cppcheck unreadVariable code smell in common.c --- src/libespeak-ng/common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libespeak-ng/common.c b/src/libespeak-ng/common.c index 5174ee14..5acbc49c 100644 --- a/src/libespeak-ng/common.c +++ b/src/libespeak-ng/common.c @@ -271,9 +271,7 @@ int IsSpace(unsigned int c) int isspace2(unsigned int c) { // can't use isspace() because on Windows, isspace(0xe1) gives TRUE ! - int c2; - - if (((c2 = (c & 0xff)) == 0) || (c > ' ')) + if ( ((c & 0xff) == 0) || (c > ' ')) return 0; return 1; }