]> git.ipfire.org Git - thirdparty/systemd.git/commit
dhcp6: fix warnings by clang with -Waddress-of-packed-member 7902/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 16 Jan 2018 16:53:00 +0000 (01:53 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 16 Jan 2018 16:53:03 +0000 (01:53 +0900)
commit976fade6c122130017d8f340f477db1aa06360bf
tree13d1fddaaf2eda7f200f43a29f4baa3629cd901b
parentb7d16a91d670c56bc5051cf8042882515d8de74d
dhcp6: fix warnings by clang with -Waddress-of-packed-member

This fixes the following warnings:
```
[194/1521] Compiling C object 'src/libsystemd-network/systemd-network@sta/dhcp6-option.c.o'.
../../git/systemd/src/libsystemd-network/dhcp6-option.c:110:25: warning: taking address of packed member 'id' of class or structure 'ia_na' may result in an unaligned pointer value [-Waddress-of-packed-member]
                iaid = &ia->ia_na.id;
                        ^~~~~~~~~~~~
../../git/systemd/src/libsystemd-network/dhcp6-option.c:115:25: warning: taking address of packed member 'id' of class or structure 'ia_ta' may result in an unaligned pointer value [-Waddress-of-packed-member]
                iaid = &ia->ia_ta.id;
                        ^~~~~~~~~~~~
2 warnings generated.
```
src/libsystemd-network/dhcp6-option.c