diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-10-19 15:45:42 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-10-20 08:41:36 +0300 |
commit | 3f3c2a7bd3bb238412a787c2e59290285a8cc51e (patch) | |
tree | 138bd894f8bffa07d5bd66af7fce07da36e55b21 /basegfx | |
parent | 5ad4d151dac1eb887d92200330e31af269d8d1fd (diff) |
WaE: Work around bogus array subscript is above array bounds
Bites at least with the Android cross-gcc 4.4.3.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41847
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/Library_basegfx.mk | 10 | ||||
-rw-r--r-- | basegfx/StaticLibrary_basegfx_s.mk | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/basegfx/Library_basegfx.mk b/basegfx/Library_basegfx.mk index ea3b2702560e..41e1691dcbb5 100644 --- a/basegfx/Library_basegfx.mk +++ b/basegfx/Library_basegfx.mk @@ -43,6 +43,16 @@ $(eval $(call gb_Library_add_defs,basegfx,\ -DBASEGFX_DLLIMPLEMENTATION \ )) +# Work around gcc bug 41847 present at least in +# the Android x-compiler 4.4.3 +ifeq ($(COM),GCC) +ifeq ($(shell expr $(gb_CCVER) \<= 40403),1) +$(eval $(call gb_Library_add_cxxflags,basegfx,\ + -Wno-array-bounds \ +)) +endif +endif + $(eval $(call gb_Library_add_api,basegfx,\ offapi \ udkapi \ diff --git a/basegfx/StaticLibrary_basegfx_s.mk b/basegfx/StaticLibrary_basegfx_s.mk index d79307560af3..27a51d104bed 100644 --- a/basegfx/StaticLibrary_basegfx_s.mk +++ b/basegfx/StaticLibrary_basegfx_s.mk @@ -40,6 +40,16 @@ $(eval $(call gb_StaticLibrary_set_include,basegfx_s,\ -I$(OUTDIR)/inc \ )) +# Work around gcc bug 41847 present at least in +# the Android x-compiler 4.4.3 +ifeq ($(COM),GCC) +ifeq ($(shell expr $(gb_CCVER) \<= 40403),1) +$(eval $(call gb_StaticLibrary_add_cxxflags,basegfx_s,\ + -Wno-array-bounds \ +)) +endif +endif + $(eval $(call gb_StaticLibrary_add_api,basegfx_s,\ offapi \ udkapi \ |