mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Fix type-punning
Fixed compile warnings on the latest gcc about type-punning. Removed unnecessary casts.
This commit is contained in:
parent
477325ddfb
commit
2f71b8753b
6 changed files with 71 additions and 74 deletions
|
|
@ -73,6 +73,14 @@
|
|||
#define _snd_seq_remove_events sndrv_seq_remove_events
|
||||
#define _snd_instr_header sndrv_seq_instr_header
|
||||
|
||||
#define sndrv_seq_addr snd_seq_addr
|
||||
#define sndrv_seq_tick_time_t snd_seq_tick_time_t
|
||||
#define sndrv_seq_real_time snd_seq_real_time
|
||||
#define sndrv_seq_timestamp snd_seq_timestamp
|
||||
#define sndrv_seq_instr snd_seq_instr
|
||||
#define sndrv_seq_event snd_seq_event
|
||||
#define sndrv_seq_instr_cluster_t snd_seq_instr_cluster_t
|
||||
|
||||
#if 0
|
||||
typedef struct sndrv_seq_addr snd_seq_addr_t;
|
||||
#define snd_seq_tick_time_t sndrv_seq_tick_time_t
|
||||
|
|
@ -96,7 +104,6 @@ typedef struct sndrv_seq_event snd_seq_event_t;
|
|||
|
||||
#include <sound/asound.h>
|
||||
#include <sound/asoundef.h>
|
||||
#include <sound/asequencer.h>
|
||||
#include "alsa-symbols.h"
|
||||
#include "version.h"
|
||||
#include "global.h"
|
||||
|
|
@ -113,6 +120,7 @@ typedef struct sndrv_seq_event snd_seq_event_t;
|
|||
#include "mixer.h"
|
||||
#include "seq_event.h"
|
||||
#include "seq.h"
|
||||
#include <sound/asequencer.h>
|
||||
#include "seqmid.h"
|
||||
#include "seq_midi_event.h"
|
||||
#include "conv.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue