Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 151133 Details for
Bug 219457
dev-libs/STLport-5.1.3 fails with gcc-4.3.0; bump and patch
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
STLport-5.1.5-fix-warnings.patch
STLport-5.1.5-fix-warnings.patch (text/plain), 4.09 KB, created by
Peter Alfredsen (RETIRED)
on 2008-04-27 13:37:07 UTC
(
hide
)
Description:
STLport-5.1.5-fix-warnings.patch
Filename:
MIME Type:
Creator:
Peter Alfredsen (RETIRED)
Created:
2008-04-27 13:37:07 UTC
Size:
4.09 KB
patch
obsolete
>--- STLport-5.1.5.orig/stlport/stl/_num_put.c >+++ STLport-5.1.5/stlport/stl/_num_put.c >@@ -158,7 +158,7 @@ > //casting numeric_limits<ptrdiff_t>::max to streamsize only works is ptrdiff_t is signed or streamsize representation > //is larger than ptrdiff_t one. > _STLP_STATIC_ASSERT((sizeof(streamsize) > sizeof(ptrdiff_t)) || >- (sizeof(streamsize) == sizeof(ptrdiff_t)) && numeric_limits<ptrdiff_t>::is_signed) >+ ((sizeof(streamsize) == sizeof(ptrdiff_t)) && numeric_limits<ptrdiff_t>::is_signed)) > ptrdiff_t __pad = __STATIC_CAST(ptrdiff_t, (min) (__STATIC_CAST(streamsize, (numeric_limits<ptrdiff_t>::max)()), > __STATIC_CAST(streamsize, __wid - __len))); > ios_base::fmtflags __dir = __flg & ios_base::adjustfield; >--- STLport-5.1.5.orig/stlport/stl/_istream.c >+++ STLport-5.1.5/stlport/stl/_istream.c >@@ -647,7 +647,7 @@ > //casting numeric_limits<ptrdiff_t>::max to streamsize only works is ptrdiff_t is signed or streamsize representation > //is larger than ptrdiff_t one. > _STLP_STATIC_ASSERT((sizeof(streamsize) > sizeof(ptrdiff_t)) || >- (sizeof(streamsize) == sizeof(ptrdiff_t)) && numeric_limits<ptrdiff_t>::is_signed) >+ ((sizeof(streamsize) == sizeof(ptrdiff_t)) && numeric_limits<ptrdiff_t>::is_signed)) > ptrdiff_t __request = __STATIC_CAST(ptrdiff_t, (min) (__STATIC_CAST(streamsize, (numeric_limits<ptrdiff_t>::max)()), _Num - __n)); > > const _CharT* __p = __scan_delim(__first, __last); >--- STLport-5.1.5.orig/stlport/stl/_locale.h >+++ STLport-5.1.5/stlport/stl/_locale.h >@@ -308,11 +308,11 @@ > #endif > > template <class _Facet> >-bool _HasFacet(const locale& __loc, const _Facet* __facet) _STLP_NOTHROW >+bool _HasFacet(const locale& __loc, const _Facet*) _STLP_NOTHROW > { return (__loc._M_get_facet(_Facet::id) != 0); } > > template <class _Facet> >-_Facet* _UseFacet(const locale& __loc, const _Facet* __facet) >+_Facet* _UseFacet(const locale& __loc, const _Facet*) > { return __STATIC_CAST(_Facet*, __loc._M_use_facet(_Facet::id)); } > > _STLP_END_NAMESPACE >--- STLport-5.1.5.orig/stlport/stl/_algo.c >+++ STLport-5.1.5/stlport/stl/_algo.c >@@ -1342,7 +1342,7 @@ > template <class _ForwardIter, class _Tp, > class _Compare1, class _Compare2, class _Distance> > _ForwardIter __upper_bound(_ForwardIter __first, _ForwardIter __last, const _Tp& __val, >- _Compare1 __comp1, _Compare2 __comp2, _Distance*) { >+ _Compare1 _STLP_VERBOSE_PARAM(__comp1), _Compare2 __comp2, _Distance*) { > _Distance __len = distance(__first, __last); > _Distance __half; > >--- STLport-5.1.5.orig/stlport/stl/_algobase.c >+++ STLport-5.1.5/stlport/stl/_algobase.c >@@ -371,7 +371,7 @@ > > template <class _ForwardIter, class _Tp, class _Compare1, class _Compare2, class _Distance> > _ForwardIter __lower_bound(_ForwardIter __first, _ForwardIter __last, const _Tp& __val, >- _Compare1 __comp1, _Compare2 __comp2, _Distance*) { >+ _Compare1 __comp1, _Compare2 _STLP_VERBOSE_PARAM(__comp2), _Distance*) { > _Distance __len = distance(__first, __last); > _Distance __half; > _ForwardIter __middle; >--- STLport-5.1.5.orig/stlport/stl/config/features.h >+++ STLport-5.1.5/stlport/stl/config/features.h >@@ -415,6 +415,7 @@ > > #if !defined (_STLP_DEBUG) > # define _STLP_VERBOSE_ASSERT(expr,diagnostic) >+# define _STLP_VERBOSE_PARAM(param) > # define _STLP_DEBUG_CHECK(expr) > # define _STLP_DEBUG_DO(expr) > #endif >--- STLport-5.1.5.orig/stlport/stl/debug/_debug.h >+++ STLport-5.1.5/stlport/stl/debug/_debug.h >@@ -184,6 +184,7 @@ > } > # endif > >+# define _STLP_VERBOSE_PARAM(param) param > # define _STLP_DEBUG_CHECK(expr) _STLP_ASSERT(expr) > # define _STLP_DEBUG_DO(expr) expr; > >--- STLport-5.1.5.orig/src/strstream.cpp >+++ STLport-5.1.5/src/strstream.cpp >@@ -266,11 +266,12 @@ > } > > void strstreambuf::_M_free(char* p) { >- if (p) >+ if (p) { > if (_M_free_fun) > _M_free_fun(p); > else > delete[] p; >+ } > } > > void strstreambuf::_M_setup(char* get, char* put, streamsize n) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 219457
:
151128
|
151129
|
151130
|
151131
| 151133 |
151135
|
151137
|
151138
|
151139