Kaydet (Commit) 9088ef89 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Silence -Werror,-Wunreachable-code on Android

Change-Id: Ide7591b4012f23e8a3faa705537937efcac435a2
üst 403c7729
......@@ -216,7 +216,7 @@ static oslFileError osl_psz_getVolumeInformation (
{
OSL_detail_STATFS_STRUCT sfs;
OSL_detail_STATFS_INIT(sfs);
if ((OSL_detail_STATFS(pszDirectory, &sfs)) < 0)
if ((OSL_detail_STATFS(pszDirectory, &sfs)) < (0))
{
oslFileError result = oslTranslateFileError(OSL_FET_ERROR, errno);
return result;
......@@ -225,7 +225,9 @@ static oslFileError osl_psz_getVolumeInformation (
/* FIXME: how to detect the kind of storage (fixed, cdrom, ...) */
if (uFieldMask & osl_VolumeInfo_Mask_Attributes)
{
if (OSL_detail_STATFS_ISREMOTE(sfs))
bool const remote = OSL_detail_STATFS_ISREMOTE(sfs);
// extracted from the 'if' to avoid Clang -Wunreachable-code
if (remote)
pInfo->uAttributes |= osl_Volume_Attribute_Remote;
pInfo->uValidFields |= osl_VolumeInfo_Mask_Attributes;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment