[ 
https://issues.apache.org/jira/browse/THRIFT-3385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jens Geyer resolved THRIFT-3385.
--------------------------------
       Resolution: Fixed
         Assignee: Jens Geyer
    Fix Version/s: 1.0

Committted my 
[patch|^THRIFT-3385-warning-format-lu-expects-long-unsigned-.patch] from 
above.Thanks to Henrique for the suggestion. At least it does the trick for me, 
and to me it also seems to be Good Enough­™ to solve that particular issue. If 
anyone wants to improve it to another (arbitrarily complex) solution - feel 
free to do so.

> warning: format ‘%lu’ expects ‘long unsigned int’, but has type 
> ‘std::basic_string<char>::size_type {aka unsigned int}
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: THRIFT-3385
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3385
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Library
>            Reporter: Jens Geyer
>            Assignee: Jens Geyer
>            Priority: Minor
>             Fix For: 1.0
>
>         Attachments: 
> THRIFT-3385-warning-format-lu-expects-long-unsigned-.patch
>
>
> {{make check}} for C++ produces the following:
> {code}
> src/TestClient.cpp: In function ‘int main(int, char**)’:
> src/TestClient.cpp:486:58: warning: format ‘%lu’ expects argument of type 
> ‘long unsigned int’, but argument 2 has type 
> ‘std::basic_string<char>::size_type {aka unsigned int}’ [-Wformat=]
> {code}
> ___
> EDIT: sorry for the noise



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to