| Summary: | On gentoo, net-libs/webkit-gtk-2.4.4-r200 complains when compiling. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Fred Krogh <at_webkit> |
| Component: | WebGL | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | berto, cgarcia, kkinnunen, zan |
| Priority: | P2 | ||
| Version: | 420+ | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
|
Description
Fred Krogh
2014-07-16 06:54:35 PDT
In trunk and on 2.4 we're building with -fno-strict-aliasing, so this error shouldn't pop up. That is, unless the optimization is re-enabled by -O2 or -O3 or directly later in the compiler command -- that would enable the warning. This is caused by the following generated code (see
Source/JavaScriptCore/inspector/scripts/CodeGeneratorInspectorStrings.py):
RefPtr<Inspector::InspectorObject> m_result;
operator RefPtr<%s>& ()
{
COMPILE_ASSERT(STATE == AllFieldsSet, result_is_not_ready);
COMPILE_ASSERT(sizeof(%s) == sizeof(Inspector::InspectorObject), cannot_cast);
return *reinterpret_cast<RefPtr<%s>*>(&m_result);
}
As Žan mentioned, -fno-strict-aliasing should prevent that
warning. Are you using it?
|