Skip to content

Commit

Permalink
fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
liukaiwen committed May 9, 2024
1 parent 82101ac commit 7f5cc12
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ macro(SetGlobalCompilerAndLinkerSettings)
if(FREECAD_RELEASE_SEH)
# remove /EHsc or /EHs flags because they are incompatible with /EHa
if (${CMAKE_BUILD_TYPE} MATCHES "Release")
string(REPLACE "/EHsc" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
string(REPLACE "/EHs" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
string(REPLACE "/EHsc" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
string(REPLACE "/EHs" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /EHa")
endif()
endif(FREECAD_RELEASE_SEH)
Expand Down
16 changes: 8 additions & 8 deletions tests/src/Mod/Mesh/App/Core/KDTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ class KDTreeTest: public ::testing::Test
protected:
void SetUp() override
{
points.emplace_back(0, 0, 0);
points.emplace_back(0, 0, 1);
points.emplace_back(0, 1, 0);
points.emplace_back(0, 1, 1);
points.emplace_back(1, 0, 0);
points.emplace_back(1, 0, 1);
points.emplace_back(1, 1, 0);
points.emplace_back(1, 1, 1);
points.emplace_back(0.F, 0.F, 0.F);
points.emplace_back(0.F, 0.F, 1.F);
points.emplace_back(0.F, 1.F, 0.F);
points.emplace_back(0.F, 1.F, 1.F);
points.emplace_back(1.F, 0.F, 0.F);
points.emplace_back(1.F, 0.F, 1.F);
points.emplace_back(1.F, 1.F, 0.F);
points.emplace_back(1.F, 1.F, 1.F);
}

void TearDown() override
Expand Down

0 comments on commit 7f5cc12

Please sign in to comment.