gpgsm: Fix alignment
justus at g10code.com
Wed Sep 14 10:28:55 CEST 2016
Hello Niibe :)
NIIBE Yutaka <gniibe at fsij.org> writes:
> Hello, Justus,
> On armhf architecture, I got this warning with gcc-6:
> ../../../gnupg/tests/gpgscm/scheme.c: In function ‘alloc_cellseg’:
> ../../../gnupg/tests/gpgscm/scheme.c:627:15: warning: cast increases
> required alignment of target type [-Wcast-align]
> I think that with modern C, we use (void *) for address. (char *) is
> specifically for character where its alignment is 1.
> How about this fix?
Sure, feel free to commit this.
At first I tried to keep in sync with TinySCHEME upstream, but upstream
was not interested in my patches, and we have diverged since.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 454 bytes
Desc: not available
More information about the Gnupg-devel