Navigation Menu

Skip to content

Commit

Permalink
Fixed some Sun Studio warnings about unreachable code.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 13, 2009
1 parent e1dee8e commit 07e97a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/archiver_zip.c
Expand Up @@ -157,8 +157,6 @@ static const char *zlib_error_string(int rc)
case Z_VERSION_ERROR: return(ERR_VERSION_ERROR);
default: return(ERR_UNKNOWN_ERROR);
} /* switch */

return(NULL);
} /* zlib_error_string */


Expand Down
1 change: 0 additions & 1 deletion src/physfs.c
Expand Up @@ -696,7 +696,6 @@ static char *calculateBaseDir(const char *argv0)

/* argv0 wasn't helpful. */
BAIL_MACRO(ERR_INVALID_ARGUMENT, NULL);
return(NULL);
} /* calculateBaseDir */


Expand Down
8 changes: 4 additions & 4 deletions src/physfs_unicode.c
Expand Up @@ -392,11 +392,11 @@ int __PHYSFS_utf8strcasecmp(const char *str1, const char *str2)
{
const PHYSFS_uint32 cp1 = utf8codepoint(&str1);
const PHYSFS_uint32 cp2 = utf8codepoint(&str2);
if (!utf8codepointcmp(cp1, cp2)) return 0;
if (!utf8codepointcmp(cp1, cp2)) break;
if (cp1 == 0) return 1;
} /* while */

return 0; /* shouldn't hit this. */
return 0;
} /* __PHYSFS_utf8strcasecmp */


Expand Down Expand Up @@ -428,10 +428,10 @@ int __PHYSFS_stricmpASCII(const char *str1, const char *str2)
else if (cp1 > cp2)
return 1;
else if (cp1 == 0) /* they're both null chars? */
return 0;
break;
} /* while */

return 0; /* shouldn't hit this. */
return 0;
} /* __PHYSFS_stricmpASCII */


Expand Down

0 comments on commit 07e97a0

Please sign in to comment.