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

                 Summary: 'Short' printf format for 'int' in sdl-clients
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Thu 16 Jan 2014 10:22:39 PM EET
                Category: client-sdl
                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.3.5, 2.4.2, 2.5.0, 2.6.0

    _______________________________________________________

Details:

For both sdl- and sdl2-client, one of the many errors clang gives:

client/gui-sdl2/gui_string.c:282:67: error: format specifies 
type 'short' but the argument has type 'int' [-Werror,-Wformat]
              "string is %hd big", TTF_FontHeight(pString->font), pText->h);
                         ~~~                                      ^~~~~~~~


Fix attached



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 16 Jan 2014 10:22:39 PM EET  Name: IntFormatSdl.patch  Size: 1kB  
By: cazfi

<http://gna.org/bugs/download.php?file_id=19759>
-------------------------------------------------------
Date: Thu 16 Jan 2014 10:22:39 PM EET  Name: IntFormatSdl-S2_5.patch  Size:
659B   By: cazfi

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

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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