Skip to content

Commit

Permalink
xsens: avoid a pair of warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Jul 20, 2023
1 parent 4088747 commit d3fd147
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion 3rdparty/xspublic/xscommon/enumexpandersbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,10 @@ JLENUMEXPANDERHEX(XsXbusMessageId,
JLENUMCASE(XMID_ProductVariant)
);

[[maybe_unused]]
static void forceEnumExpanderInclusion()
{
volatile bool blah = false;
[[maybe_unused]] volatile bool blah = false;
JLWRITEG("blah" << XRV_OK << blah);
JLWRITEG("blah" << XMID_AcceptMtw << blah);
}
2 changes: 1 addition & 1 deletion 3rdparty/xspublic/xscommon/journaller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ static const char* gLogLevelString[] = {
void Journaller::writeFileHeader(const std::string& appName)
{
m_appName = appName;
XsTimeStamp now = XsTimeStamp::now();
[[maybe_unused]] XsTimeStamp now = XsTimeStamp::now();
JLWRITE(this, "Journaller logging to " << m_file->filename() << (appName.empty() ? XsString() : XsString(" for ") + appName) << " on " << now.toString());
//JLWRITE(this, "Current log level is " << gLogLevelString[m_level]);
}
Expand Down

0 comments on commit d3fd147

Please sign in to comment.