Skip to content

Commit

Permalink
build: add [[maybe_unused]] on EXPORT macro
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-nslick committed Sep 4, 2024
1 parent 58faa00 commit f150f7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/nccl_ofi_config_bottom.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
#define OFI_LIKELY(x) __builtin_expect((x), 1)
#define OFI_UNLIKELY(x) __builtin_expect((x), 0)

#ifdef __cplusplus
#define NCCL_OFI_EXPORT_SYMBOL __attribute__((visibility("default"))) [[maybe_unused]]
#else
#define NCCL_OFI_EXPORT_SYMBOL __attribute__((visibility("default")))
#endif

#ifndef __cplusplus
#define static_assert _Static_assert
Expand Down

0 comments on commit f150f7e

Please sign in to comment.