vlc_common: remove warnings on VLC_OBJECT
authorAlexandre Janniaux <ajanni@videolabs.io>
Fri, 21 Jun 2024 14:11:28 +0000 (16:11 +0200)
committerSebastian Ramacher <sramacher@debian.org>
Fri, 7 Mar 2025 06:31:22 +0000 (07:31 +0100)
commitddc833a8f4b4d27f6c7e65cdc9422efd9224c538
treed3a52a07f8cbfa9dac42dbd0e6cd3038ebd2766a
parent2d3989331c579db6e5cab018be1458d0f2eba99f
vlc_common: remove warnings on VLC_OBJECT

Fix an infinite amount of warnings on Darwin:

    ../../include/vlc_variables.h:563:5: warning: due to lvalue conversion of the controlling expression, association of type 'const struct vlc_common_members' will never be selected because it is qualified [-Wunreachable-code-generic-assoc]
        var_Create( p_obj, psz_name, VLC_VAR_STRING | VLC_VAR_DOINHERIT
        ^
    ../../include/vlc_variables.h:122:39: note: expanded from macro 'var_Create'
    #define var_Create(a,b,c) var_Create( VLC_OBJECT(a), b, c )
                                          ^
    ../../include/vlc_common.h:481:15: note: expanded from macro 'VLC_OBJECT'
            const struct vlc_common_members: (const vlc_object_t *)(&(x)->obj) \

Gbp-Pq: Name 0007-vlc_common-remove-warnings-on-VLC_OBJECT.patch
include/vlc_common.h