Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addon fixes for gcc-14.1 #8918

Merged
merged 5 commits into from
May 23, 2024
Merged

Addon fixes for gcc-14.1 #8918

merged 5 commits into from
May 23, 2024

Conversation

heitbaum
Copy link
Contributor

temporary fix until tslib can be updated

fixes missing header

src/ts_reconfig.c: In function 'ts_reconfig':
src/ts_reconfig.c:43:9: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
   43 |         memset(ts, 0, sizeof(struct tsdev));
      |         ^~~~~~
src/ts_reconfig.c:21:1: note: include '<string.h>' or provide a declaration of 'memset'
   20 | #include "tslib-private.h"
  +++ |+#include <string.h>
   21 |
src/ts_reconfig.c:43:9: warning:incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
   43 |         memset(ts, 0, sizeof(struct tsdev));
      |         ^~~~~~
src/ts_reconfig.c:43:9: note: include '<string.h>' or provide a declaration of 'memset'
Fix build on arm32

pico/carthw/svp/compiler.c: In function 'ssp_translate_block':
pico/carthw/svp/compiler.c:1800:24: error: passing argument 1 of 'rfflush' from incompatible pointer type [-Wincompatible-pointer-types]
 1800 |                 fflush(stdout);
      |                        ^~~~~~
      |                        |
      |                        FILE *
In file included from ./pico/pico_port.h:12,
                 from ./pico/pico_int.h:15,
                 from pico/carthw/svp/compiler.c:9:
platform/libretro/libretro-common/include/streams/file_stream_transforms.h:89:25: note: expected 'RFILE *' but argument is of type 'FILE *'
   89 | int64_t rfflush(RFILE * stream);
      |                 ~~~~~~~~^~~~~~
@chewitt chewitt merged commit 2f828ef into LibreELEC:master May 23, 2024
@heitbaum heitbaum deleted the gcc14 branch May 23, 2024 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants