Skip to content

Commit

Permalink
silence warning C4100 on MSVC when exceptions are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiasljungstrom committed Jun 28, 2021
1 parent c3c27e5 commit 33cd0bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/fmt/format-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -2550,7 +2550,7 @@ FMT_FUNC void format_system_error(detail::buffer<char>& out, int error_code,
format_error_code(out, error_code, message);
}

FMT_FUNC void detail::error_handler::on_error(const char* message) {
FMT_FUNC void detail::error_handler::on_error(FMT_MAYBE_UNUSED const char* message) {
FMT_THROW(format_error(message));
}

Expand Down
2 changes: 1 addition & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ constexpr auto compile_string_to_view(detail::std_string_view<Char> s)

FMT_BEGIN_DETAIL_NAMESPACE

inline void throw_format_error(const char* message) {
inline void throw_format_error(FMT_MAYBE_UNUSED const char* message) {
FMT_THROW(format_error(message));
}

Expand Down

0 comments on commit 33cd0bb

Please sign in to comment.