Skip to content

Commit

Permalink
fix a clang warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Rao Meng committed Dec 7, 2021
1 parent 6336fc1 commit e2b4546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fmtlog-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ class fmtlogDetailT
hour.fromi(h);
setArgVal<14>(info.getBase());
setArgVal<15>(info.getLocation());
logLevel = "DBG INF WRN ERR OFF" + (info.logLevel << 2);
logLevel = (const char*)"DBG INF WRN ERR OFF" + (info.logLevel << 2);

size_t headerPos = membuf.size();
fmt::detail::vformat_to(membuf, headerPattern, fmt::basic_format_args(args.data(), parttenArgSize));
Expand Down

0 comments on commit e2b4546

Please sign in to comment.