[
https://issues.apache.org/jira/browse/THRIFT-3385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14965631#comment-14965631
]
Roger Meier commented on THRIFT-3385:
-------------------------------------
I cannot reproduce that by using gcc 4.9.2 on Debian Jessie.
{noformat}
$ make check
...
depbase=`echo src/TestClient.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -I/usr/include
-I../../lib/cpp/src -Igen-cpp -Wall -Wextra -pedantic -g -O2 -std=c++11 -MT
src/TestClient.o -MD -MP -MF $depbase.Tpo -c -o src/TestClient.o
src/TestClient.cpp &&\
mv -f $depbase.Tpo $depbase.Po
/bin/sh ../../libtool --tag=CXX --mode=link g++ -Wall -Wextra -pedantic -g
-O2 -std=c++11 -L/usr/lib/x86_64-linux-gnu -lz -o TestClient src/TestClient.o
libtestgencpp.la ../../lib/cpp/libthrift.la ../../lib/cpp/libthriftz.la
../../lib/cpp/libthriftnb.la -levent -lboost_program_options -lboost_system
-lboost_filesystem -lssl -lcrypto -lrt -lpthread
libtool: link: g++ -Wall -Wextra -pedantic -g -O2 -std=c++11 -o
.libs/TestClient src/TestClient.o -L/usr/lib/x86_64-linux-gnu
./.libs/libtestgencpp.a -lz /home/blabla/lib/cpp/.libs/libthrift.so
../../lib/cpp/.libs/libthrift.so ../../lib/cpp/.libs/libthriftz.so
../../lib/cpp/.libs/libthriftnb.so -levent -lboost_program_options
-lboost_system -lboost_filesystem -lssl -lcrypto -lrt -lpthread
make[2]: 'StressTest' is up to date.
make[2]: 'StressTestNonBlocking' is up to date.
{noformat}
> 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)