Skip to content

Commit

Permalink
build: add [[maybe_unused]] on EXPORT macro
Browse files Browse the repository at this point in the history
stack-info: PR: #559, branch: aws-nslick/stack/6
Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
  • Loading branch information
Nicholas Sielicki committed Sep 4, 2024
1 parent af00dd1 commit 0d00bc2
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 0d00bc2

Please sign in to comment.