URL:
  <http://gna.org/bugs/?21496>

                 Summary: Alignment increase in sprite_get_bounding_box()
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Thu 16 Jan 2014 10:42:42 PM EET
                Category: client-gtk-3.0
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: Ready For Test
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: None
         Planned Release: 2.4.2, 2.5.0, 2.6.0

    _______________________________________________________

Details:

clang error:

client/gui-gtk-3.0/sprite.c:185:19: error: cast from 'unsigned char *' to
'guint32 *' (aka 'unsigned int *') increases required alignment from 1 to 4
[-Werror,-Wcast-align]
  guint32 *data = (guint32 *)cairo_image_surface_get_data(sprite->surface);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Fix attached.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 16 Jan 2014 10:42:42 PM EET  Name: BoundingBoxAlignment.patch  Size:
2kB   By: cazfi

<http://gna.org/bugs/download.php?file_id=19762>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?21496>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to