MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #30344 All Revisions ] Back to Issue ]
Summary 0030344: Coding Rules - suppress GCC compiler warnings -Wstrict-overflow on Standard_OutOfRange_Raise_if
Revision 2018-11-07 13:10 by kgv
Description GCC produces a lot (~ 140, but they are duplicated) of warnings when building OCCT or OCCT-based project with exceptions in headers using Standard_OutOfRange_Raise_if macros (No_Exception undefined) like this:
/src/NCollection/NCollection_Array1.hxx:379:5: warning: assuming signed overflow does not occur when 
assuming that (X + c) < X is always false [-Wstrict-overflow]
/src/NCollection/NCollection_Array2.hxx:221:5: warning: assuming signed overflow does not occur when 
assuming that (X + c) < X is always false [-Wstrict-overflow]
/src/NCollection/NCollection_BaseVector.hxx:203:22: warning: assuming signed overflow does not occur 
when assuming that (X - c) > X is always false [-Wstrict-overflow]
/src/math/math_Vector.hxx:247:5: warning: assuming signed overflow does not occur when assuming that 
(X + c) < X is always false [-Wstrict-overflow]


The warnings are generated by gcc 4.9, gcc 6.3 and gcc 7.3.
Revision 2018-11-07 13:01 by kgv
Description GCC produces a lot (~ 140, but they are duplicated) of warnings when building OCCT or OCCT-based project with exceptions in headers using Standard_OutOfRange_Raise_if macros (No_Exception undefined) like this:
/src/NCollection/NCollection_Array1.hxx:379:5: warning: assuming signed overflow does not occur when 
assuming that (X + c) < X is always false [-Wstrict-overflow]
/src/NCollection/NCollection_Array2.hxx:221:5: warning: assuming signed overflow does not occur when 
assuming that (X + c) < X is always false [-Wstrict-overflow]
/src/NCollection/NCollection_BaseVector.hxx:203:22: warning: assuming signed overflow does not occur 
when assuming that (X - c) > X is always false [-Wstrict-overflow]
/src/math/math_Vector.hxx:247:5: warning: assuming signed overflow does not occur when assuming that 
(X + c) < X is always false [-Wstrict-overflow]


The warnings are generated by gcc 4.9 and and gcc 6.3, but not gcc 7.3.
Revision 2018-11-06 15:52 by kgv
Description GCC produces a lot (~ 140, but they are duplicated) of warnings when building OCCT or OCCT-based project with exceptions in headers using Standard_OutOfRange_Raise_if macros (No_Exception undefined) like this:
/src/NCollection/NCollection_Array1.hxx:379:5: warning: assuming signed overflow does not occur when 
assuming that (X + c) < X is always false [-Wstrict-overflow]
/src/NCollection/NCollection_Array2.hxx:221:5: warning: assuming signed overflow does not occur when 
assuming that (X + c) < X is always false [-Wstrict-overflow]
/src/NCollection/NCollection_BaseVector.hxx:203:22: warning: assuming signed overflow does not occur 
when assuming that (X - c) > X is always false [-Wstrict-overflow]
/src/math/math_Vector.hxx:247:5: warning: assuming signed overflow does not occur when assuming that 
(X + c) < X is always false [-Wstrict-overflow]
Revision 2018-11-06 15:50 by kgv
Description GCC produces a lot (~ 140, but they are duplicated) of warnings when building OCCT or OCCT-based project with exceptions in headers (No_Exception undefined) like this:
/src/NCollection/NCollection_Array1.hxx:379:5: warning: assuming signed overflow does not occur when 
assuming that (X + c) < X is always false [-Wstrict-overflow]
/src/NCollection/NCollection_Array2.hxx:221:5: warning: assuming signed overflow does not occur when 
assuming that (X + c) < X is always false [-Wstrict-overflow]
/src/NCollection/NCollection_BaseVector.hxx:203:22: warning: assuming signed overflow does not occur 
when assuming that (X - c) > X is always false [-Wstrict-overflow]
/src/math/math_Vector.hxx:247:5: warning: assuming signed overflow does not occur when assuming that 
(X + c) < X is always false [-Wstrict-overflow]
Revision 2018-11-06 15:49 by kgv
Description GCC produces a lot (~ 140, but they are duplicated) of warnings when building OCCT or OCCT-based project with exceptions in headers (No_Exception undefined) like this:
/src/NCollection/NCollection_Array1.hxx:379:5: warning: assuming signed overflow does not occur when 
assuming that (X + c) < X is always false [-Wstrict-overflow]
/src/NCollection/NCollection_Array2.hxx:221:5: warning: assuming signed overflow does not occur when 
assuming that (X + c) < X is always false [-Wstrict-overflow]
/src/math/math_Vector.hxx:247:5: warning: assuming signed overflow does not occur when assuming that 
(X + c) < X is always false [-Wstrict-overflow]
Revision 2018-11-06 15:48 by kgv
Description GCC produces a lot (~ 140) of warnings when building OCCT or OCCT-based project with exceptions in headers (No_Exception undefined) like this:
/src/math/math_Vector.hxx:247:5: warning: assuming signed overflow does not occur when assuming that 
(X + c) < X is always false [-Wstrict-overflow]
/src/math/math_Vector.hxx:247:5: warning: assuming signed overflow does not occur when assuming that 
(X + c) < X is always false [-Wstrict-overflow]
Revision 2018-11-06 15:48 by kgv
Description GCC produces a lot (~140) of warnings when building OCCT or OCCT-based project with exceptions in headers (No_Exception undefined) like this:
/src/math/math_Vector.hxx:247:5: warning: assuming signed overflow does not occur when assuming that 
(X + c) < X is always false [-Wstrict-overflow]
/src/math/math_Vector.hxx:247:5: warning: assuming signed overflow does not occur when assuming that 
(X + c) < X is always false [-Wstrict-overflow]


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker