Skip to content

Commit

Permalink
Fix Mac build warning
Browse files Browse the repository at this point in the history
Fix a warning on the Mac about an unused private variable.

Refs #11315
  • Loading branch information
rgmiller committed May 5, 2015
1 parent 4e16b79 commit 961ec4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
Expand Up @@ -78,7 +78,12 @@ class TOPAZLiveEventDataListener : public API::ILiveListener,
// Both values are designed to be passed straight into the TofEvent
// constructor.

ILiveListener::RunStatus m_status;
// ILiveListener::RunStatus m_status;
// Currently commented out because we have yet to figure out how to
// get the run status from the data stream. If we ever re-enable
// this variable, make sure it's properly initialized in the
// constructo.

bool m_workspaceInitialized;

DataObjects::EventWorkspace_sptr
Expand Down
Expand Up @@ -163,7 +163,7 @@ Kernel::Logger g_log("SNSLiveEventDataListener");

/// Constructor
TOPAZLiveEventDataListener::TOPAZLiveEventDataListener()
: ILiveListener(), m_status(NoRun), m_udpBufSize(32768),
: ILiveListener(), m_udpBufSize(32768),
m_runNumber(0),m_stopThread(false)
{

Expand Down Expand Up @@ -654,21 +654,6 @@ ILiveListener::RunStatus TOPAZLiveEventDataListener::runStatus() {
throw(*m_backgroundException);
}

#if 0
// Need to protect against m_status and m_deferredRunDetailsPkt
// getting out of sync in the (currently only one) case where the
// background thread has not been paused...
Poco::ScopedLock<Poco::FastMutex> scopedLock(m_mutex);

// The MonitorLiveData algorithm calls this function *after* the call to
// extract data, which means the value we return should reflect the
// value that's appropriate for the events that were returned when
// extractData was called().
ILiveListener::RunStatus rv = m_status;


return rv;
#endif
// until we figure out how to get run info from the stream, this is
// all we can do
return ILiveListener::RunStatus::NoRun;
Expand Down

0 comments on commit 961ec4a

Please sign in to comment.