Skip to content

Commit

Permalink
fix unused attribute to apply only to GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
db48x committed Oct 6, 2024
1 parent 53215b9 commit 08ac37d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/cata_imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,13 @@ static void load_font( ImGuiIO &io, const std::vector<std::string> &typefaces )
io.Fonts->GetGlyphRangesDefault() );
}

void cataimgui::client::load_fonts( const Font_Ptr __attribute__( ( unused ) ) &gui_font,
#if defined(__clang__) || defined(__GNUC__)
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif

void cataimgui::client::load_fonts( UNUSED const Font_Ptr &gui_font,
const Font_Ptr &mono_font,
const std::array<SDL_Color, color_loader<SDL_Color>::COLOR_NAMES_COUNT> &windowsPalette,
const std::vector<std::string> &gui_typefaces, const std::vector<std::string> &mono_typefaces )
Expand Down

0 comments on commit 08ac37d

Please sign in to comment.