[Issue 24782] New: mmsystem header has align(1): near top
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 23 23:47:55 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24782
Issue ID: 24782
Summary: mmsystem header has align(1): near top
Product: D
Version: D2
Hardware: All
OS: Windows
Status: NEW
Severity: minor
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: destructionator at gmail.com
ttps://github.com/dlang/dmd/blob/master/druntime/src/core/sys/windows/mmsystem.d#L21
in upstream still too. another bug caught by safer by default?
that looks just plain wrong, but also not super important since things are
pointers and dwords
contrast to this thing generated from the microsoft xml:
https://github.com/rumbu13/windows-d/blob/master/out/windows/multimedia.d#L576
this has align(1): inside the struct, which is different than outside the
struct!
either one is wrong and the other is right, or they're both wrong
this mingw based thing from wine also doesn't have an align setting.
https://github.com/wine-mirror/wine/blob/master/include/mmsystem.h
feels wrong to me, want second opinion.
this potential bug caughed by OpenD Safer By Default btw:
arsd\simpleaudio.d(2274): Deprecation: field `WAVEHDR.lpData` cannot modify
misaligned pointers in non-`@system`/`@trusted` code
--
More information about the Digitalmars-d-bugs
mailing list