mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 04:01:37 +08:00
device driver: Fix compile warnings
This commit is contained in:
@@ -162,6 +162,10 @@ private:
|
|||||||
volatile unsigned _tail; /**< removal point in _item_size units */
|
volatile unsigned _tail; /**< removal point in _item_size units */
|
||||||
|
|
||||||
unsigned _next(unsigned index);
|
unsigned _next(unsigned index);
|
||||||
|
|
||||||
|
/* we don't want this class to be copied */
|
||||||
|
RingBuffer(const RingBuffer&);
|
||||||
|
RingBuffer operator=(const RingBuffer&);
|
||||||
};
|
};
|
||||||
|
|
||||||
RingBuffer::RingBuffer(unsigned num_items, size_t item_size) :
|
RingBuffer::RingBuffer(unsigned num_items, size_t item_size) :
|
||||||
|
|||||||
@@ -129,10 +129,15 @@ private:
|
|||||||
uint32_t _frequency;
|
uint32_t _frequency;
|
||||||
struct spi_dev_s *_dev;
|
struct spi_dev_s *_dev;
|
||||||
|
|
||||||
|
/* this class does not allow copying */
|
||||||
|
SPI(const SPI&);
|
||||||
|
SPI operator=(const SPI&);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
int _bus;
|
int _bus;
|
||||||
|
|
||||||
int _transfer(uint8_t *send, uint8_t *recv, unsigned len);
|
int _transfer(uint8_t *send, uint8_t *recv, unsigned len);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace device
|
} // namespace device
|
||||||
|
|||||||
Reference in New Issue
Block a user