Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f00511ad
Kaydet (Commit)
f00511ad
authored
Tem 16, 2010
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cmcfixes77: #i113177# remove strict aliasing warnings
üst
ee8b9539
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
17 deletions
+3
-17
aliasing.patch
boost/aliasing.patch
+3
-17
No files found.
boost/aliasing.patch
Dosyayı görüntüle @
f00511ad
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
// Use, modification and distribution is subject to the Boost Software License, Version 1.0.
// Use, modification and distribution is subject to the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// http://www.boost.org/LICENSE_1_0.txt)
@@ -4
4,6 +45
,13 @@
@@ -4
1,6 +42
,13 @@
# pragma warning( disable : 4127 ) // "conditional expression is constant"
# pragma warning( disable : 4127 ) // "conditional expression is constant"
#endif
#endif
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
// Define BOOST_FUNCTION_STD_NS to the namespace that contains type_info.
// Define BOOST_FUNCTION_STD_NS to the namespace that contains type_info.
#ifdef BOOST_NO_STD_TYPEINFO
#ifdef BOOST_NO_STD_TYPEINFO
// Embedded VC++ does not have type_info in namespace std
// Embedded VC++ does not have type_info in namespace std
@@ -3
14,15 +322
,15 @@
@@ -3
03,15 +311
,15 @@
{
{
if (op == clone_functor_tag || op == move_functor_tag) {
if (op == clone_functor_tag || op == move_functor_tag) {
const functor_type* in_functor =
const functor_type* in_functor =
...
@@ -39,19 +39,5 @@
...
@@ -39,19 +39,5 @@
- reinterpret_cast<functor_type*>(&out_buffer.data)->~Functor();
- reinterpret_cast<functor_type*>(&out_buffer.data)->~Functor();
+ static_cast<functor_type*>(static_cast<void*>(&out_buffer.data))->~Functor();
+ static_cast<functor_type*>(static_cast<void*>(&out_buffer.data))->~Functor();
} else if (op == check_functor_type_tag) {
} else if (op == check_functor_type_tag) {
const
detail::sp_type
info& check_type
const
BOOST_FUNCTION_STD_NS::type_
info& check_type
= *out_buffer.type.type;
= *out_buffer.type.type;
@@ -714,8 +722,11 @@
public: // should be protected, but GCC 2.95.3 will fail to allow access
detail::function::vtable_base* get_vtable() const {
- return reinterpret_cast<detail::function::vtable_base*>(
- reinterpret_cast<std::size_t>(vtable) & ~(std::size_t)0x01);
+ return static_cast<detail::function::vtable_base*>(
+ (void*)(
+ (std::size_t(static_cast<void*>(vtable)) & ~(std::size_t(0x01)))
+ )
+ );
}
bool has_trivial_copy_and_destroy() const {
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment