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
|
|
@ -31,6 +31,7 @@
|
|||
/** version of the sequencer */
|
||||
#define SNDRV_SEQ_VERSION SNDRV_PROTOCOL_VERSION (1, 0, 1)
|
||||
|
||||
#ifdef __KERNEL__
|
||||
/**
|
||||
* definition of sequencer event types
|
||||
*/
|
||||
|
|
@ -474,6 +475,8 @@ struct sndrv_seq_event_bounce {
|
|||
/* queue sync port */
|
||||
#define sndrv_seq_queue_sync_port(q) ((q) + 16)
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
/* system information */
|
||||
struct sndrv_seq_system_info {
|
||||
int queues; /* maximum queues count */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue