Skip to content

Commit

Permalink
refactor: remove unnecessary TOPGG_MAYBE_UNUSED macro
Browse files Browse the repository at this point in the history
  • Loading branch information
null8626 committed Sep 22, 2024
1 parent 65e6b21 commit 3f83faa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions include/topgg/topgg.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
#define TOPGG_UNUSED
#endif

#ifdef __TOPGG_BUILDING__
#define TOPGG_MAYBE_UNUSED [[maybe_unused]]
#endif

#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunknown-warning-option"
Expand Down
2 changes: 1 addition & 1 deletion src/result.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ using topgg::ratelimited;
#pragma clang diagnostic ignored "-Wunused-function"
#endif

TOPGG_MAYBE_UNUSED static const char* get_dpp_error_message(const dpp::http_error& http_error) {
[[maybe_unused]] static const char* get_dpp_error_message(const dpp::http_error& http_error) {
switch (http_error) {
case dpp::h_unknown:
return "Status unknown.";
Expand Down

0 comments on commit 3f83faa

Please sign in to comment.