Skip to content

Commit 8b43e33

Browse files
committed
GPU (Linux): silence compiler warnings
1 parent 302716f commit 8b43e33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/detection/gpu/gpu_linux.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ static const char* drmDetectDriver(FFGPUResult* gpu, FFstrbuf* pciDir, FFstrbuf*
6767
}
6868
#endif
6969

70-
static bool pciDetectDriver(FFGPUResult* gpu, FFstrbuf* pciDir, FFstrbuf* buffer, const char* drmKey)
70+
static bool pciDetectDriver(FFGPUResult* gpu, FFstrbuf* pciDir, FFstrbuf* buffer, FF_MAYBE_UNUSED const char* drmKey)
7171
{
72-
#if __has_include(<drm/drm.h>)
72+
#if FF_HAVE_DRM_H
7373
if (drmKey)
7474
{
7575
drmDetectDriver(gpu, pciDir, buffer, drmKey);

0 commit comments

Comments
 (0)