Skip to content

Commit a734f18

Browse files
committed
Chore (Linux): silience compiler warnings
1 parent 30b1e29 commit a734f18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/detection/disk/disk_linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ const char* ffDetectDisksImpl(FFDiskOptions* options, FFlist* disks)
283283

284284
while((device = getmntent(mountsFile)))
285285
{
286-
if (__builtin_expect(options->folders.length, 0))
286+
if (__builtin_expect(options->folders.length > 0, false))
287287
{
288288
if (!ffDiskMatchMountpoint(&options->folders, device->mnt_dir))
289289
continue;

src/detection/gpu/gpu_drm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ const char* ffDrmDetectAsahi(FFGPUResult* gpu, int fd)
305305
struct drm_asahi_params_global paramsGlobal = {};
306306
if (ioctl(fd, DRM_IOCTL_ASAHI_GET_PARAMS, &(struct drm_asahi_get_params) {
307307
.param_group = DRM_ASAHI_GET_PARAMS,
308-
.pointer = (uint64_t) &paramsGlobal,
308+
.pointer = (uintptr_t) &paramsGlobal,
309309
.size = sizeof(paramsGlobal),
310310
}) >= 0)
311311
{

0 commit comments

Comments
 (0)