Skip to content

Commit

Permalink
Fix build with GCC 14 (#17282)
Browse files Browse the repository at this point in the history
  • Loading branch information
viachaslavic authored Dec 25, 2024
1 parent 9a5b206 commit b124fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/drivers/platform_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@ static size_t frontend_unix_get_os(char *s,
char *ptr;
struct utsname buffer;
if (uname(&buffer) != 0)
return;
return _len;
*major = (int)strtol(buffer.release, &ptr, 10);
*minor = (int)strtol(++ptr, NULL, 10);
#if defined(__FreeBSD__)
Expand Down

0 comments on commit b124fe6

Please sign in to comment.