Commit 828ae847 authored by Jan Möbius's avatar Jan Möbius
Browse files

Next try to silence ccpcheck warnings in ACG tests

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@18204 383ad7c9-94d9-4d36-a494-682f7c89f535
parent eaea5f9d
......@@ -6894,7 +6894,10 @@ void MeshCompilerTest_GetInput0(MeshTestData* input_) {
 
input_->fsize_ = raw_fsize0;
input_->fdata_pos = (int*)raw_fdata_pos0;
input_->vdata_pos = reinterpret_cast<float*>(raw_vdata_pos0);
// First cast to void* to make cppcheck happy and show, that we know what we are doing here!
void* tmp = reinterpret_cast<void*>(raw_vdata_pos0);
input_->vdata_pos = reinterpret_cast<float*>(tmp);
}
 
 
......@@ -1510,7 +1510,12 @@ void MeshCompilerTest_GetInput1( MeshTestData* input_ ) {
input_->fdata_pos = (int*)raw_fdata_pos1;
input_->fdata_t = (int*)raw_fdata_texc1;
input_->vdata_pos = reinterpret_cast<float*>(raw_vdata_pos1);
input_->vdata_t = reinterpret_cast<float*>(raw_vdata_texc1);
// First cast to void* to make cppcheck happy and show, that we know what we are doing here!
void* tmp = reinterpret_cast<void*>(raw_vdata_pos1);
input_->vdata_pos = reinterpret_cast<float*>(tmp);
// First cast to void* to make cppcheck happy and show, that we know what we are doing here!
tmp = reinterpret_cast<void*>(raw_vdata_texc1);
input_->vdata_t = reinterpret_cast<float*>(tmp);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment