Skip to content

Commit f1a1aae

Browse files
committed
Switch to using the static asserts.
The comment mentions that they have compiler warnings, but with clang 15 we now get compiler warnings for trying to do differences with nullptr. Signed-off-by: jlait <[email protected]>
1 parent 65a39c8 commit f1a1aae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nanovdb/nanovdb/util/GridChecksum.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ template <typename ValueT>
178178
void GridChecksum::operator()(const NanoGrid<ValueT> &grid, ChecksumMode mode)
179179
{
180180
// Validate the assumed memory layout
181-
#if 1
181+
#if 0
182182
NANOVDB_ASSERT(NANOVDB_OFFSETOF(GridData, mMagic) == 0);
183183
NANOVDB_ASSERT(NANOVDB_OFFSETOF(GridData, mChecksum) == 8);
184184
NANOVDB_ASSERT(NANOVDB_OFFSETOF(GridData, mVersion) == 16);

0 commit comments

Comments
 (0)