mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
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]
This commit is contained in:
parent
67c67c8f19
commit
cb695f05c5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user