When compiling with clang I get this warning, seems harmless to me, but I'd like a clean compile. Is there a way to fix this?
In file included from /home/matthijs/Projects/moneymaker/moneymaker/fmtlog/fmtlog.h:782:
/home/matthijs/Projects/moneymaker/moneymaker/fmtlog/fmtlog-inl.h:375:38: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
logLevel = "DBG INF WRN ERR OFF" + (info.logLevel << 2);
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/home/matthijs/Projects/moneymaker/moneymaker/fmtlog/fmtlog-inl.h:454:7: note: in instantiation of member function 'fmtlogDetailT<0>::handleLog' requested here
handleLog(fmt::string_view(tb->name, tb->nameSize), h);
^
/home/matthijs/Projects/moneymaker/moneymaker/fmtlog/fmtlog-inl.h:552:31: note: in instantiation of member function 'fmtlogDetailT<0>::poll' requested here
fmtlogDetailWrapper<>::impl.poll(forceFlush);
^
/home/matthijs/Projects/moneymaker/moneymaker/fmtlog/fmtlog-inl.h:375:38: note: use array indexing to silence this warning
logLevel = "DBG INF WRN ERR OFF" + (info.logLevel << 2);
^
& [ ]
1 warning generated.
When compiling with clang I get this warning, seems harmless to me, but I'd like a clean compile. Is there a way to fix this?
Thanks