diff options
author | Guido Günther <agx@sigxcpu.org> | 2014-03-08 16:19:01 +0000 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2014-04-14 10:12:21 +0200 |
commit | 6447d01bc78970b56935a3d5211d8ba72a862209 (patch) | |
tree | 30712199fe3203041749b3e1979089c65e9f82c7 /libplanfahr/providers | |
parent | 3e558702bf389142fd3ee7e339e43ff70526e1ef (diff) |
hafas-bin6-format: Disable -Wattributes for HafasBin6 structs
This fixes warnings like
hafas-bin6-format.h:44:13: error: packed attribute causes inefficient alignment for 'version' [-Werror=attributes]
on arm. Since we do need this layout there's little we can do about it.
Diffstat (limited to 'libplanfahr/providers')
-rw-r--r-- | libplanfahr/providers/hafas-bin6-format.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libplanfahr/providers/hafas-bin6-format.h b/libplanfahr/providers/hafas-bin6-format.h index e2878b0..583d21b 100644 --- a/libplanfahr/providers/hafas-bin6-format.h +++ b/libplanfahr/providers/hafas-bin6-format.h @@ -35,6 +35,8 @@ * */ +#pragma GCC diagnostic ignored "-Wattributes" + /** * HafasBin6Header: * hafas binary format header version 6 @@ -253,6 +255,8 @@ typedef struct _HafasBin6Attr { guint16 val_off; /* offset into string table */ /* 0x02 */ } HafasBin6Attr; +#pragma GCC diagnostic pop /* "-Wattributes" */ + /* * Access to headers and tables */ |