mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0024180: Eliminate CLang / GCC compiler warning -Wswitch
Eliminated warnings -Wswitch shown by gcc Eliminated two new warnings about wrong initialization order Eliminated warnings about unused functions. A few more ICC warnings (type conversions) fixed
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#include <Standard_Integer.hxx>
|
||||
|
||||
// macro to get size of C array
|
||||
#define CARRAY_LENGTH(arr) (sizeof(arr)/sizeof(arr[0]))
|
||||
#define CARRAY_LENGTH(arr) (int)(sizeof(arr)/sizeof(arr[0]))
|
||||
|
||||
void math_DoubleTab::Allocate()
|
||||
{
|
||||
|
@@ -22,7 +22,7 @@
|
||||
#include <Standard_Failure.hxx>
|
||||
|
||||
// macro to get size of C array
|
||||
#define CARRAY_LENGTH(arr) (sizeof(arr)/sizeof(arr[0]))
|
||||
#define CARRAY_LENGTH(arr) (int)(sizeof(arr)/sizeof(arr[0]))
|
||||
|
||||
math_SingleTab::math_SingleTab(const Standard_Integer LowerIndex,
|
||||
const Standard_Integer UpperIndex) :
|
||||
|
Reference in New Issue
Block a user