Build fails (-Werror=deprecated-declarations), vcl module

Stephan Bergmann sbergman at redhat.com
Wed Apr 9 03:32:07 PDT 2014


On 04/09/2014 08:47 AM, julien2412 wrote:
> On pc Debian x86-64 with master sources updated today, I got this:
> /home/julien/compile-libreoffice/libo/vcl/unx/gtk/a11y/atkimage.cxx: In
> function ‘void image_get_image_position(AtkImage*, gint*, gint*,
> AtkCoordType)’:
> /home/julien/compile-libreoffice/libo/vcl/unx/gtk/a11y/atkimage.cxx:84:9:
> error: ‘void atk_component_get_position(AtkComponent*, gint*, gint*,
> AtkCoordType)’ is deprecated (declared at
> /usr/include/atk-1.0/atk/atkcomponent.h:182): Use
> 'atk_component_get_extents' instead [-Werror=deprecated-declarations]
>           atk_component_get_position( ATK_COMPONENT( image ), x, y,
> coord_type );
>           ^
> /home/julien/compile-libreoffice/libo/vcl/unx/gtk/a11y/atkimage.cxx:84:78:
> error: ‘void atk_component_get_position(AtkComponent*, gint*, gint*,
> AtkCoordType)’ is deprecated (declared at
> /usr/include/atk-1.0/atk/atkcomponent.h:182): Use
> 'atk_component_get_extents' instead [-Werror=deprecated-declarations]
>           atk_component_get_position( ATK_COMPONENT( image ), x, y,
> coord_type );
>
> ^
> cc1plus: all warnings being treated as errors

Worked around now like for other similar cases in vcl/unx/gtk/a11y/.

Stephan


More information about the LibreOffice mailing list