Skip to content

Commit

Permalink
Verify size of OSPUnstructuredCellType enum
Browse files Browse the repository at this point in the history
  • Loading branch information
johguenther committed Jan 8, 2025
1 parent d57b226 commit e07bc97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/ospTestSuite/test_enums.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ TEST(Enums, VKLUnstructuredCellType)
ASSERT_EQ(OSP_HEXAHEDRON, VKL_HEXAHEDRON);
ASSERT_EQ(OSP_WEDGE, VKL_WEDGE);
ASSERT_EQ(OSP_PYRAMID, VKL_PYRAMID);
ASSERT_EQ(sizeof(OSPUnstructuredCellType), 1); // should fit in uint8
}

TEST(Enums, VKLAMRMethod)
Expand Down
2 changes: 1 addition & 1 deletion cmake/compiler/msvc.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Copyright 2009 Intel Corporation
## SPDX-License-Identifier: Apache-2.0

set(COMMON_CXX_FLAGS "/EHsc /MP /GR /bigobj")
set(COMMON_CXX_FLAGS "/EHsc /MP /GR /bigobj /Zc:__cplusplus")

set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${COMMON_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${COMMON_CXX_FLAGS} /Ox /fp:fast /Oi /Gy ")
Expand Down

0 comments on commit e07bc97

Please sign in to comment.