mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-23 07:29:19 +02:00
Fix build with gcc 15 Closes: https://bugs.gentoo.org/946901 Closes: https://bugs.gentoo.org/884917 Closes: https://bugs.gentoo.org/875497 Closes: https://bugs.gentoo.org/831494 Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Signed-off-by: Sam James <sam@gentoo.org>
14 lines
350 B
Diff
14 lines
350 B
Diff
Avoid an implicit int to improve compatibility with future compilers.
|
|
Borrowed from https://src.fedoraproject.org/rpms/foobillard/blob/f41/f/foobillard-c99.patch
|
|
|
|
--- a/src/billmove.c
|
|
+++ b/src/billmove.c
|
|
@@ -409,7 +409,7 @@ void record_move_log_event( enum event_type event,
|
|
}
|
|
|
|
|
|
-int my_rand(nr)
|
|
+int my_rand(int nr)
|
|
{
|
|
return rand()%nr;
|
|
}
|