warning: pointer not aligned at address

Andrew Edwards via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Apr 11 19:04:56 PDT 2017


When compiled with any dmd compiler from 2.069.0 through present 
(2.074.0), https://rosettacode.org/wiki/100_doors#D produces the 
following linker warning:

ld: warning: pointer not aligned at address 0x10004FCEB 
(_D51TypeInfo_S3std5range13__T4iotaTiTmZ4iotaFimZ6Result6__initZ 
+ 24 from doors100.o)

[65 other lines removed for brevity]

ld: warning: pointer not aligned at address 0x100050C7D 
(_D11TypeInfo_xb6__initZ + 16 from doors100.o)

specific compilers checked:
dmd-2.068.0	dmd-2.068.1	dmd-2.068.2	dmd-2.069.0	dmd-2.070.0	dmd-2.071.2	dmd-2.073.1	dmd-2.073.2	dmd-2.074.0

What's the proper way to address these warnings? The code is 
linked and works as expected but, to me, there is just something 
about those warnings that cries out for attention.

Is there something I can do to align this code or is this 
something that needs to be addressed in the compiler?

Thanks,
Andrew


More information about the Digitalmars-d-learn mailing list