this should fix a couple warnings found by raorn

This commit is contained in:
Bill Currie 2006-09-11 22:56:16 +00:00 committed by Jeff Teunissen
parent 1819a96bfb
commit a2b2261913
2 changed files with 7 additions and 6 deletions

View file

@ -46,18 +46,18 @@
#endif
typedef struct _TargaHeader {
unsigned char id_length __attribute__((packed));
unsigned char colormap_type __attribute__((packed));
unsigned char image_type __attribute__((packed));
unsigned char id_length;// __attribute__((packed));
unsigned char colormap_type;// __attribute__((packed));
unsigned char image_type;// __attribute__((packed));
unsigned short colormap_index __attribute__((packed));
unsigned short colormap_length __attribute__((packed));
unsigned char colormap_size __attribute__((packed));
unsigned char colormap_size;// __attribute__((packed));
unsigned short x_origin __attribute__((packed));
unsigned short y_origin __attribute__((packed));
unsigned short width __attribute__((packed));
unsigned short height __attribute__((packed));
unsigned char pixel_size __attribute__((packed));
unsigned char attributes __attribute__((packed));
unsigned char pixel_size;// __attribute__((packed));
unsigned char attributes;// __attribute__((packed));
} TargaHeader;
#if defined (__BORLANDC__) || defined (_MSC_VER)

View file

@ -321,6 +321,7 @@ SNDDMA_Init (void)
// don't mix less than this in mono samples:
err = qfsnd_pcm_hw_params_get_period_size (hw, (snd_pcm_uframes_t *)
(char *)
&sn.submission_chunk, 0);
if (0 > err) {
Sys_Printf ("ALSA: unable to get period size. %s\n",