Skip to content

Commit 0030ea9

Browse files
authored
suppress -Werror=empty-body in char_traits implementation (#3098)
1 parent b400516 commit 0030ea9

File tree

1 file changed

+2
-1
lines changed
  • libcudacxx/include/cuda/std/detail/libcxx/include

1 file changed

+2
-1
lines changed

libcudacxx/include/cuda/std/detail/libcxx/include/__string

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ struct _CCCL_TYPE_VISIBILITY_DEFAULT char_traits<char>
263263
#if _CCCL_COMPILER(GCC, <, 13)
264264
// absurd workaround for GCC "internal compiler error: in cxx_eval_array_reference"
265265
if (_CUDA_VSTD::is_constant_evaluated())
266-
;
266+
{
267+
}
267268
#endif
268269
#if defined(_CCCL_BUILTIN_STRLEN)
269270
NV_IF_ELSE_TARGET(NV_IS_DEVICE,

0 commit comments

Comments
 (0)