https://bugs.freedesktop.org/show_bug.cgi?id=65474
--- Comment #2 from Yupeng Chang <[email protected]> --- Hi Arun, The simplest way to fix this is to add another structure struct hasmap_table { struct pa_hashmap hashmap; struct hashmap_entry* entry[NBUCKETS]; }; change #define BY_HASH(h) ((struct hashmap_entry**) ((uint8_t*) (h) + PA_ALIGN(sizeof(pa_hashmap)))) to #define BY_HASH(h) (((struct hashmap_table*)h)->entry) Then, change h = pa_xmalloc0(PA_ALIGN(sizeof(pa_hashmap)) + NBUCKETS*sizeof(struct hashmap_entry*)); to h = pa_xmalloc0(sizeof(struct hashmap_table)); I found there are lots of files in pulseaudio have cast-align issue. I did this modification and compiled, no warnings anymore. But I have test if this modification is OK. If you think this modification is OK, please help test.. Thanks you! -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug.
_______________________________________________ pulseaudio-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/pulseaudio-bugs
