Skip to content

Commit

Permalink
Mark PRIVATE functions with [[maybe_unused]]
Browse files Browse the repository at this point in the history
This prevents "unused function" warnings with clang.
  • Loading branch information
madmann91 committed Aug 24, 2024
1 parent 5acea60 commit c3704b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/overture/visibility.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@

/// @cond PRIVATE
#define PUBLIC_VISIBILITY
#define PRIVATE_VISIBILITY static inline
#define PRIVATE_VISIBILITY [[maybe_unused]] static inline
/// @endcond

0 comments on commit c3704b6

Please sign in to comment.