Commit ff0d9245a98228a7cab00e92df2355b10a066df6

Sylvain Becker 2019-10-30T14:26:18

SDL_syspower: remove dead store warning Value stored to 'str' during its initialization is never read

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/power/linux/SDL_syspower.c b/src/power/linux/SDL_syspower.c
index c5714a5..38b3cae 100644
--- a/src/power/linux/SDL_syspower.c
+++ b/src/power/linux/SDL_syspower.c
@@ -289,7 +289,7 @@ static SDL_bool
 next_string(char **_ptr, char **_str)
 {
     char *ptr = *_ptr;
-    char *str = *_str;
+    char *str;
 
     while (*ptr == ' ') {       /* skip any spaces... */
         ptr++;