WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 119679
118246
Fix cast-align warning in WebCore/css/StylePropertySet.h
https://bugs.webkit.org/show_bug.cgi?id=118246
Summary
Fix cast-align warning in WebCore/css/StylePropertySet.h
Csaba Osztrogonác
Reported
2013-07-01 08:10:18 PDT
/home/oszi/WebKit/Source/WebCore/css/StylePropertySet.h:181:189: warning: cast from 'const char*' to 'const WebCore::StylePropertyMetadata*' increases required alignment of target type [-Wcast-align] This line introduced in
https://trac.webkit.org/changeset/133138
179: inline const StylePropertyMetadata* ImmutableStylePropertySet::metadataArray() const 180: { 181: return reinterpret_cast<const StylePropertyMetadata*>(&reinterpret_cast<const char*>((&static_cast<const ImmutableStylePropertySet*>(this)->m_storage))[m_arraySize * sizeof(CSSValue*)]); 182: } This long line is so obfuscated for me. :) Could you check it this warning is valid or can be supressable by using reinterpret_cast_ptr instead of reinterpret_cast ?
Attachments
Add attachment
proposed patch, testcase, etc.
Csaba Osztrogonác
Comment 1
2013-07-02 07:57:14 PDT
any idea?
Csaba Osztrogonác
Comment 2
2013-07-03 03:22:33 PDT
ping?
Csaba Osztrogonác
Comment 3
2015-10-06 06:02:46 PDT
*** This bug has been marked as a duplicate of
bug 119679
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug