NVIDIA / NVTX

The NVIDIA® Tools Extension SDK (NVTX) is a C-based Application Programming Interface (API) for annotating events, code ranges, and resources in your applications.
Apache License 2.0
310 stars 48 forks source link

Fix clang warning on missing braces #92

Closed bernhardmgruber closed 6 months ago

bernhardmgruber commented 7 months ago

When clang++ is used as host compiler after nvcc, it emits a warning when compiling with -Wmissing-braces, because nvcc emits parentheses around the initializer for a union instead of braces.

Warning observed with clang++-17 and nvcc 12.4 when nvtx3.hpp is used inside CCCL.

bernhardmgruber commented 7 months ago

Seems I was not the first one: #88.

evanramos-nvidia commented 6 months ago

Fixed by 81b27a306ad9f286349779617fd169f059289645