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

MAME doesn't build with Clang 20.1.0 on Windows #13453

Open
Osso13 opened this issue Mar 8, 2025 · 1 comment
Open

MAME doesn't build with Clang 20.1.0 on Windows #13453

Osso13 opened this issue Mar 8, 2025 · 1 comment

Comments

@Osso13
Copy link
Member

Osso13 commented Mar 8, 2025

Yesterday pacman started distributing Clang 20.1.0. MAME fails to build. This will be a problem when the CI starts pulling that Clang version. There are problems both in 3rdparty and in MAME proper. This is an example of the latter:

../../../../../src/devices/cpu/alto2/a2disp.cpp:502:9: error: first argument in call to 'memset' is a pointer to
non-trivially copyable type 'struct (unnamed struct at ../../../../../src/devices/cpu/alto2/a2disp.h:195:1)'
[-Werror,-Wnontrivial-memcall]
502 | memset(&m_dsp, 0, sizeof(m_dsp));
| ^
../../../../../src/devices/cpu/alto2/a2disp.cpp:502:9: note: explicitly cast the pointer to silence this warning
502 | memset(&m_dsp, 0, sizeof(m_dsp));
| ^
| (void*)
../../../../../src/devices/cpu/alto2/a2ether.cpp:1310:9: error: first argument in call to 'memset' is a pointer to
non-trivially copyable type 'struct (unnamed struct at ../../../../../src/devices/cpu/alto2/a2ether.h:50:1)'
[-Werror,-Wnontrivial-memcall]
1310 | memset(&m_eth, 0, sizeof(m_eth));
| ^
../../../../../src/devices/cpu/alto2/a2ether.cpp:1310:9: note: explicitly cast the pointer to silence this warning
1310 | memset(&m_eth, 0, sizeof(m_eth));
| ^
| (void*)

@Osso13
Copy link
Member Author

Osso13 commented Mar 9, 2025

ocornut/imgui@419a9ad
This seems to address the errors in 3rdparty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant