[
https://issues.apache.org/jira/browse/THRIFT-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13471234#comment-13471234
]
Hudson commented on THRIFT-1695:
--------------------------------
Integrated in Thrift #553 (See [https://builds.apache.org/job/Thrift/553/])
THRIFT-1695 allow warning-free compilation in VS 2012 and GNU 4.6
Patch: Ben Craig & James K Lowden (Revision 1395277)
Result = ABORTED
roger : http://svn.apache.org/viewvc/?view=rev&rev=1395277
Files :
* /thrift/trunk/compiler/cpp/src/generate/t_c_glib_generator.cc
* /thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc
* /thrift/trunk/compiler/cpp/src/generate/t_js_generator.cc
* /thrift/trunk/compiler/cpp/src/main.cc
* /thrift/trunk/compiler/cpp/src/platform.h
> allow warning-free compilation in VS 2012 and GNU 4.6
> -----------------------------------------------------
>
> Key: THRIFT-1695
> URL: https://issues.apache.org/jira/browse/THRIFT-1695
> Project: Thrift
> Issue Type: Improvement
> Components: C++ - Library
> Affects Versions: 0.9
> Environment: Windows and any Unix
> Reporter: James K. Lowden
> Assignee: Roger Meier
> Labels: patch
> Fix For: 1.0
>
> Attachments: compiler_is_dir.patch, compiler_switch_default.patch,
> compiler_unused_locals.patch, compiler_warning_purge.patch,
> libthrift_warning_purge.patch, platform_direct.patch,
> thrift.warningfree.pax.gz
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> The patches allow the current trunk of Thrift C++ to
> build without warnings in Visual Studio and GNU gcc.
> I introduce THRIFT_SAFE_CAST in Thrift.h, which tests narrowing
> conversions for fit. Would-be overflows throw std::runtime_error.
> Some functions have been modified or overloaded to allow size_t
> parameters. SOCKET is dealt with intelligently.
> IMO every public thrift function should have a form accepting normal
> types -- including e.g. short, int, long, and size_t -- and apply casts
> as necessary. In particular size_t is important because std
> constainers have size() members that usually return something like
> size_t.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira