Kaydet (Commit) d7aef240 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Add silly workaround for weird Clang (Xcode 5.1.1) problem with -Oz

Change-Id: I4fc5997504d3fb847518317abd5bf80fda4467d5
üst 37466b01
......@@ -162,6 +162,14 @@ public:
bool MakeUnion( const SwRect &rRect );
};
#ifdef IOS
static void dummy_function()
{
pid_t pid = getpid();
(void) pid;
}
#endif
class SwLineRects
{
public:
......@@ -171,7 +179,17 @@ public:
typedef std::vector< SwLineRect >::reverse_iterator reverse_iterator;
typedef std::vector< SwLineRect >::size_type size_type;
size_t nLastCount; //avoid unnecessary cycles in PaintLines
SwLineRects() : nLastCount( 0 ) {}
SwLineRects() : nLastCount( 0 )
{
#ifdef IOS
// Work around what is either a compiler bug in Xcode 5.1.1,
// or some unknown problem in this file. If I ifdef out this
// call, I get a crash in SwSubsRects::PaintSubsidiary: the
// address of the rLi reference variable is claimed to be
// 0x4000000!
dummy_function();
#endif
}
void AddLineRect( const SwRect& rRect, const Color *pColor, const SvxBorderStyle nStyle,
const SwTabFrm *pTab, const sal_uInt8 nSCol );
void ConnectEdges( OutputDevice *pOut );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment