]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-util: drop _packed_ attribute
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 27 Jan 2019 16:13:42 +0000 (17:13 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 4 Feb 2019 19:32:44 +0000 (20:32 +0100)
commit6b68c26824affd2c22556ab6e8ff4df58785d7ad
tree82b1a4fdc7d8b75f72312744ac0e5543ad63b964
parente27b9aba30381331905619d62af276bf5f967b8d
test-util: drop _packed_ attribute

gcc-9 warns:
../src/test/test-util.c:147:19: note: in expansion of macro ‘container_of’
  147 |         assert_se(container_of(&myval.v1, struct mytype, v1) == &myval);
      |                   ^~~~~~~~~~~~

I don't think packing matters here for the test of container_of(), so let's
just remove it.
src/test/test-util.c