Commit b80285a1 authored by Bernhard Link's avatar Bernhard Link

avoid bool bitfields to work around a problem likely in gcc-4.7

parent 049e7850
2012-05-19
* avoid some problem with gcc-4.7
2012-04-24
* change Contents-* files generation default from
"allcompontents" to "percomponent compatsymlink".
......
......@@ -13,12 +13,12 @@
struct contentsoptions {
struct {
bool enabled:1;
bool udebs:1;
bool nodebs:1;
bool percomponent:1;
bool allcomponents:1;
bool compatsymlink:1;
bool enabled;
bool udebs;
bool nodebs;
bool percomponent;
bool allcomponents;
bool compatsymlink;
} flags;
compressionset compressions;
};
......
......@@ -62,12 +62,12 @@ struct distribution {
/* is tracking enabled for this distribution?
* (NONE must be 0 so it is the default) */
enum trackingtype { dt_NONE=0, dt_KEEP, dt_ALL, dt_MINIMAL } tracking;
struct trackingoptions { bool includechanges:1;
bool includebyhand:1;
bool includelogs:1;
bool needsources:1;
bool keepsources:1;
bool embargoalls:1;
struct trackingoptions { bool includechanges;
bool includebyhand;
bool includelogs;
bool needsources;
bool keepsources;
bool embargoalls;
} trackingoptions;
/* what content files to generate */
struct contentsoptions contents;
......
......@@ -38,9 +38,9 @@ struct encoding_preferences {
unsigned short count;
/* a list of compressions to use */
struct compression_preference {
bool diff :1;
bool force :1;
enum compression compression :6;
bool diff;
bool force;
enum compression compression;
} requested[3*c_COUNT];
};
......
......@@ -15,8 +15,8 @@ struct trackedpackage {
int *refcounts;
enum filetype *filetypes;
struct {
bool isnew:1;
bool deleted:1;
bool isnew;
bool deleted;
} flags;
};
typedef struct s_tracking *trackingdb;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment