Disk (Android): fix compiling errors
This commit is contained in:
1 parent
f640102b0e
commit
b424c525cc
1 file changed
+6
-6
@@ -121,14 +121,14 @@ static void detectName(FFDisk* disk, const FFstrbuf* device)
|
||||
|
||||
#ifdef __ANDROID__
|
||||
|
||||
static void detectType(const FFlist* allDisks, FFDisk* currentDisk, const char* options)
|
||||
static void detectType(FF_MAYBE_UNUSED const FFlist* allDisks, FFDisk* currentDisk, FF_MAYBE_UNUSED const char* options)
|
||||
{
|
||||
if(ffStrbufEqualS(&disk->mountpoint, "/") || ffStrbufEqualS(&disk->mountpoint, "/storage/emulated"))
|
||||
disk->type = FF_DISK_TYPE_REGULAR;
|
||||
else if(ffStrbufStartsWithS(&disk->mountpoint, "/mnt/media_rw/"))
|
||||
disk->type = FF_DISK_TYPE_EXTERNAL;
|
||||
if(ffStrbufEqualS(¤tDisk->mountpoint, "/") || ffStrbufEqualS(¤tDisk->mountpoint, "/storage/emulated"))
|
||||
currentDisk->type = FF_DISK_TYPE_REGULAR;
|
||||
else if(ffStrbufStartsWithS(¤tDisk->mountpoint, "/mnt/media_rw/"))
|
||||
currentDisk->type = FF_DISK_TYPE_EXTERNAL;
|
||||
else
|
||||
disk->type = FF_DISK_TYPE_HIDDEN;
|
||||
currentDisk->type = FF_DISK_TYPE_HIDDEN;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user