Skip to content

Commit 163f468

Browse files
committed
Fix Conda warning
Signed-off-by: Matthew Cong <mcong@nvidia.com>
1 parent 625c2d9 commit 163f468

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/fvdb/detail/io/SaveNanoVDB.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,11 @@ getIndexGrid(const GridBatch &gridBatch, const std::vector<std::string> names =
335335
"Grid name " + name + " exceeds maximum character length of " +
336336
std::to_string(nanovdb::GridData::MaxNameSize) + ".");
337337
nanovdb::GridData *retGridData = (nanovdb::GridData *)(retHandle.gridData(bi));
338+
#pragma GCC diagnostic push
338339
#pragma GCC diagnostic ignored "-Wstringop-truncation"
340+
#pragma GCC diagnostic ignored "-Warray-bounds"
339341
strncpy(retGridData->mGridName, names[bi].c_str(), nanovdb::GridData::MaxNameSize);
342+
#pragma GCC diagnostic pop
340343
}
341344
}
342345

0 commit comments

Comments
 (0)