summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-bus/bus-message.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-23 02:58:43 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-23 04:08:16 +0100
commitcb695f05c5bb7d188090b570c22a8231f8e02afe (patch)
tree674b5d992fc079a4c0986a135f40c54ae2c38050 /src/libsystemd-bus/bus-message.h
parentupdate TODO (diff)
downloadsystemd-cb695f05c5bb7d188090b570c22a8231f8e02afe.tar.xz
systemd-cb695f05c5bb7d188090b570c22a8231f8e02afe.zip
bus: move attribute to end of structure, so it is not ignored
src/libsystemd-bus/bus-message.h:41:1: warning: attribute 'packed' is ignored, place it after "struct" to apply attribute to type declaration [-Wignored-attributes]
Diffstat (limited to 'src/libsystemd-bus/bus-message.h')
-rw-r--r--src/libsystemd-bus/bus-message.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-bus/bus-message.h b/src/libsystemd-bus/bus-message.h
index b21fdf0ada..1a6c614611 100644
--- a/src/libsystemd-bus/bus-message.h
+++ b/src/libsystemd-bus/bus-message.h
@@ -38,7 +38,7 @@ struct bus_container {
size_t begin;
};
-_packed_ struct bus_header {
+struct bus_header {
uint8_t endian;
uint8_t type;
uint8_t flags;
@@ -46,7 +46,7 @@ _packed_ struct bus_header {
uint32_t body_size;
uint32_t serial;
uint32_t fields_size;
-};
+} _packed_;
struct sd_bus_message {
unsigned n_ref;