From: abv Date: Thu, 26 Jul 2018 04:48:56 +0000 (+0300) Subject: 0029859: Coding - GCC compiler warning -Warray-bounds in IntPatch_InterferencePolyhed... X-Git-Tag: OCCT_VC2017_73~39 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=9dc6c9b8d410ece0a8355f8269aca362f03471ce;p=occt-copy.git 0029859: Coding - GCC compiler warning -Warray-bounds in IntPatch_InterferencePolyhedron.cxx --- diff --git a/src/IntPatch/IntPatch_InterferencePolyhedron.cxx b/src/IntPatch/IntPatch_InterferencePolyhedron.cxx index 9f920f600e..65b183711a 100644 --- a/src/IntPatch/IntPatch_InterferencePolyhedron.cxx +++ b/src/IntPatch/IntPatch_InterferencePolyhedron.cxx @@ -855,7 +855,7 @@ Standard_Boolean IntPatch_InterferencePolyhedron::TangentZoneValue // Arrays are increased to eliminate gcc warning. Standard_Real parO[10], parT[10]; Standard_Integer nbNoInserted=0; - Standard_Integer piToInsert[10]; + Standard_Integer piToInsert[17]; // for GCC 4.9 for (nob=0; nob<3; nob++) { //processing of the object segment P[nob], P[nob+1]