Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
521b7316
Commit
521b7316
authored
Oct 13, 2011
by
David Partyka
Browse files
Revert "COMP: Fix compiler warnings"
This reverts commit
20808418
.
parent
20808418
Changes
2
Hide whitespace changes
Inline
Side-by-side
Filtering/vtkAMRBox.cxx
View file @
521b7316
...
...
@@ -79,9 +79,6 @@ vtkAMRBox::vtkAMRBox(int dim, const int *lo, const int *hi)
(
dim
==
this
->
GetDimensionality
()
)
);
assert
(
"post: Dimension expected to be 2 or 3"
&&
(
(
this
->
GetDimensionality
()
==
2
)
||
(
this
->
GetDimensionality
()
==
3
)
)
);
// Avoid compiler warnings when compiled in Release
static_cast
<
void
>
(
dim
);
}
//-----------------------------------------------------------------------------
...
...
@@ -102,9 +99,6 @@ vtkAMRBox::vtkAMRBox(int dim, const int *dims)
// this->BuildAMRBox( dims[0],dims[1],dims[2],dims[3],dims[4],dims[5] );
assert
(
"post: AMR box dimension does not match expected dimension"
&&
(
dim
==
this
->
GetDimensionality
()
)
);
// Avoid compiler warnings when compiled in Release
static_cast
<
void
>
(
dim
);
}
...
...
@@ -152,7 +146,6 @@ int vtkAMRBox::GetCellLinearIndex( const int i, const int j, const int k )
ijk
[
2
]
=
k
-
this
->
LoCorner
[
2
];
int
N1
,
N2
,
idx
;
idx
=
0
;
switch
(
this
->
Dimension
)
{
case
1
:
...
...
@@ -1529,9 +1522,6 @@ void vtkAMRBox::Deserialize( unsigned char* buffer, const vtkIdType &bytesize )
assert
(
"pre: input buffer is NULL"
&&
(
buffer
!=
NULL
)
);
assert
(
"pre: buffer bytesize is 0"
&&
(
bytesize
>
0
)
);
// Avoid compiler warning when compiled in Release
static_cast
<
void
>
(
bytesize
);
// STEP 0: set pointer to traverse the buffer
unsigned
char
*
ptr
=
buffer
;
...
...
Parallel/vtkAMRUtilities.cxx
View file @
521b7316
...
...
@@ -255,9 +255,6 @@ void vtkAMRUtilities::DeserializeMetaData(
assert
(
"Buffer to deserialize is NULL"
&&
(
buffer
!=
NULL
)
);
assert
(
"Expected numBytes > 0"
&&
(
numBytes
>
0
)
);
// Avoid compiler warnings when compiled in Release
static_cast
<
void
>
(
numBytes
);
unsigned
char
*
ptr
=
buffer
;
int
N
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment