Procházet zdrojové kódy

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

Sylvain Becker před 6 roky
rodič
revize
ff0d9245a9
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/power/linux/SDL_syspower.c

+ 1 - 1
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++;