From 3f3c2a7bd3bb238412a787c2e59290285a8cc51e Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 19 Oct 2011 15:45:42 +0300 Subject: 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 --- basegfx/StaticLibrary_basegfx_s.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'basegfx/StaticLibrary_basegfx_s.mk') 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 \ -- cgit