Skip to content

Commit dd01a6b

Browse files
committed
Addressed some compiler warnings
1 parent f3c8b3c commit dd01a6b

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

Source/Plugins/KWIKFormat/RecordEngine/HDF5Recording.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#define CHANNEL_TIMESTAMP_MIN_WRITE 32
2828
#define TIMESTAMP_EACH_NSAMPLES 1024
2929

30-
HDF5Recording::HDF5Recording() : processorIndex(-1), hasAcquired(false), bufferSize(MAX_BUFFER_SIZE)
30+
HDF5Recording::HDF5Recording() : processorIndex(-1), bufferSize(MAX_BUFFER_SIZE), hasAcquired(false)
3131
{
3232
//timestamp = 0;
3333
scaledBuffer.malloc(MAX_BUFFER_SIZE);

Source/Processors/Editors/ChannelSelector.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,11 @@ void ChannelSelector::shiftChannelsVertical(float amount)
215215

216216
void ChannelSelector::refreshButtonBoundaries()
217217
{
218-
int column = 0;
219-
int row = 0;
220-
int nColumns;
218+
//int column = 0;
219+
//int row = 0;
220+
//int nColumns;
221221

222-
const int numButtons = parameterButtonsManager.getNumButtons();
222+
//const int numButtons = parameterButtonsManager.getNumButtons();
223223
const int columnWidth = getDesiredWidth() / (numColumnsGreaterThan100 + 1) + 1;
224224
const int rowHeight = 14;
225225

Source/Processors/RecordNode/DataQueue.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
#include "DataQueue.h"
2525

2626
DataQueue::DataQueue(int blockSize, int nBlocks) :
27+
m_buffer(0, blockSize*nBlocks),
28+
m_numChans(0),
2729
m_blockSize(blockSize),
28-
m_numBlocks(nBlocks),
29-
m_maxSize(blockSize*nBlocks),
3030
m_readInProgress(false),
31-
m_numChans(0),
32-
m_buffer(0, blockSize*nBlocks)
31+
m_numBlocks(nBlocks),
32+
m_maxSize(blockSize*nBlocks)
3333
{}
3434

3535
DataQueue::~DataQueue()

Source/Processors/RecordNode/OriginalRecording.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ void OriginalRecording::writeData(int writeChannel, int realChannel, const float
450450
{
451451
int samplesWritten = 0;
452452

453-
int sourceNodeId = getChannel(realChannel)->sourceNodeId;
453+
//int sourceNodeId = getChannel(realChannel)->sourceNodeId;
454454

455455
//TODO: optimize. Now we use realchannel, we should optimize the whole thing to only use recorded channels
456456
samplesSinceLastTimestamp.set(realChannel, 0);

0 commit comments

Comments
 (0)