+ if(COMPILER_C_VERSION_MAJOR_MINOR STREQUAL "4.6")
+ #some old compilers emit bogus warnings here, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45978 . Avoid failing the build in this case
+ set(warnCFLAGS "${warnCFLAGS}-Wno-error=array-bounds")
+ endif()