Skip to content
Snippets Groups Projects
Commit 9aa6c7a3 authored by mio's avatar mio
Browse files

community/lbreakouthd: fix build with gcc 14

parent 5dcdf534
No related branches found
No related tags found
1 merge request!71072community/lbreakouthd: upgrade to 1.1.9, fix build with gcc 14
...@@ -18,6 +18,7 @@ subpackages="$pkgname-lang $pkgname-data::noarch" ...@@ -18,6 +18,7 @@ subpackages="$pkgname-lang $pkgname-data::noarch"
source="https://sourceforge.net/projects/lgames/files/lbreakouthd/lbreakouthd-$pkgver.tar.gz source="https://sourceforge.net/projects/lgames/files/lbreakouthd/lbreakouthd-$pkgver.tar.gz
0001-fix-undeclared-uint.patch 0001-fix-undeclared-uint.patch
format-security.patch format-security.patch
gcc14-implicit-function-declaration.patch
" "
options="!check" # No test suite options="!check" # No test suite
...@@ -50,4 +51,5 @@ sha512sums=" ...@@ -50,4 +51,5 @@ sha512sums="
c3a51cd0c57c87133423912de2b4e9411bc8eff5220288d484851db30299cdfec8c6b044b90702896bbd374678da1cf6e663ab9a75555ff58323149b55169ec3 lbreakouthd-1.1.9.tar.gz c3a51cd0c57c87133423912de2b4e9411bc8eff5220288d484851db30299cdfec8c6b044b90702896bbd374678da1cf6e663ab9a75555ff58323149b55169ec3 lbreakouthd-1.1.9.tar.gz
4de6934a7840153354f54c5c6a9c14d22e3d5a76030cd33131c2511d97c363d73912d53d3581fd756ff42dec9c7d4e819056e5a2eee5d92064a88a9337abe5eb 0001-fix-undeclared-uint.patch 4de6934a7840153354f54c5c6a9c14d22e3d5a76030cd33131c2511d97c363d73912d53d3581fd756ff42dec9c7d4e819056e5a2eee5d92064a88a9337abe5eb 0001-fix-undeclared-uint.patch
1600c7cb2c655d775b08961e7752979367c218917f628682e598816e33233cea7c3450c6f03005186dc8f6411d256733da4ed93284d4517608db9167bd189ce5 format-security.patch 1600c7cb2c655d775b08961e7752979367c218917f628682e598816e33233cea7c3450c6f03005186dc8f6411d256733da4ed93284d4517608db9167bd189ce5 format-security.patch
f70dcddbd776e5fd37e2fd63f6fbbd35dde982e14e0fd03cdf02aa126e912965613701738bcf7da1427030d0e4e41c6c871b7fa7fdd066c9f64dc78518ff047c gcc14-implicit-function-declaration.patch
" "
Fix -Wimplicit-function-declaration error with gcc 14.
````
paddle.c: In function 'paddle_freeze':
paddle.c:98:9: error: implicit declaration of function 'SDL_GetRelativeMouseState' [-Wimplicit-function-declaration]
98 | SDL_GetRelativeMouseState( &freeze, &freeze );
| ^~~~~~~~~~~~~~~~~~~~~~~~~
```
```
balls.c: In function 'ball_check_brick_reflection':
balls.c:202:48: error: implicit declaration of function 'SDL_GetTicks' [-Wimplicit-function-declaration]
202 | b->paddle->last_ball_contact = SDL_GetTicks();
| ^~~~~~~~~~~~
````
--- lbreakouthd-1.1.9-origin/libgame/balls.c
+++ lbreakouthd-1.1.9/libgame/balls.c
@@ -15,6 +15,7 @@
* *
***************************************************************************/
+#include <SDL2/SDL_timer.h>
#include "gamedefs.h"
#include "levels.h"
#include "paddle.h"
--- lbreakouthd-1.1.9-origin/libgame/paddle.c
+++ lbreakouthd-1.1.9/libgame/paddle.c
@@ -15,6 +15,7 @@
* *
***************************************************************************/
+#include <SDL2/SDL_mouse.h>
#include "gamedefs.h"
#include "shots.h"
#include "paddle.h"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment