mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix broken binary issues with latest gcc 4.x due to bitfield signess
mishaps for emu10k1 [1] and few other places. Reported/Submitted/Tested by: Ed Schouten <ed@fxq.nl> [1]
This commit is contained in:
parent
ccb43d8d2c
commit
79462204f1
4 changed files with 6 additions and 4 deletions
|
|
@ -97,7 +97,8 @@ struct ess_info {
|
|||
bus_dma_tag_t parent_dmat;
|
||||
|
||||
unsigned int bufsize;
|
||||
int type, duplex:1, newspeed:1;
|
||||
int type;
|
||||
unsigned int duplex:1, newspeed:1;
|
||||
u_long bd_flags; /* board-specific flags */
|
||||
struct ess_chinfo pch, rch;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ struct emu_mem {
|
|||
|
||||
struct emu_voice {
|
||||
int vnum;
|
||||
int b16:1, stereo:1, busy:1, running:1, ismaster:1;
|
||||
unsigned int b16:1, stereo:1, busy:1, running:1, ismaster:1;
|
||||
int speed;
|
||||
int start, end, vol;
|
||||
int fxrt1; /* FX routing */
|
||||
|
|
|
|||
|
|
@ -92,7 +92,8 @@ struct ess_info {
|
|||
void *ih;
|
||||
bus_dma_tag_t parent_dmat;
|
||||
|
||||
int simplex_dir, type, duplex:1, newspeed:1, dmasz[2];
|
||||
int simplex_dir, type, dmasz[2];
|
||||
unsigned int duplex:1, newspeed:1;
|
||||
unsigned int bufsz;
|
||||
|
||||
struct ess_chinfo pch, rch;
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ SND_DECLARE_FILE("$FreeBSD$");
|
|||
MALLOC_DEFINE(M_AC97, "ac97", "ac97 codec");
|
||||
|
||||
struct ac97mixtable_entry {
|
||||
int reg:8; /* register index */
|
||||
unsigned reg:8; /* register index */
|
||||
/* reg < 0 if inverted polarity */
|
||||
unsigned bits:4; /* width of control field */
|
||||
unsigned ofs:4; /* offset (only if stereo=0) */
|
||||
|
|
|
|||
Loading…
Reference in a new issue