add cast to void** to fix build with gcc14

This commit is contained in:
Tomáš Kelemen (vudiq) 2024-05-22 10:55:17 +02:00 committed by LibretroAdmin
parent 295de90327
commit 8dafa0ce0d

View File

@ -1302,7 +1302,7 @@ static void frontend_unix_set_screen_brightness(int value)
/* Device tree should have 'label = "backlight";' if control is desirable */
filestream_read_file("/sys/class/backlight/backlight/max_brightness",
&buffer, NULL);
(void **)&buffer, NULL);
if (buffer)
{
sscanf(buffer, "%u", &max_brightness);