You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/11/12 10:33:10 UTC
[jira] [Commented] (THRIFT-3385) warning: format ‘%lu’ expects ‘long unsigned int’, but has type ‘std::basic_string::size_type {aka unsigned int}
[ https://issues.apache.org/jira/browse/THRIFT-3385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15001895#comment-15001895 ]
ASF GitHub Bot commented on THRIFT-3385:
----------------------------------------
GitHub user henrique opened a pull request:
https://github.com/apache/thrift/pull/688
printf size_t format
THRIFT-3385 warning: format ‘%lu’ expects ‘long unsigned int’
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/henrique/thrift THRIFT-3385
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/thrift/pull/688.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #688
----
commit 0090022a2c643c87cd5dfc35d78d54049f258d3b
Author: Henrique Mendonça <he...@apache.org>
Date: 2015-11-12T09:29:22Z
printf size_t format: THRIFT-3385 warning: format ‘%lu’ expects ‘long unsigned int’
----
> 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
>
> {{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)