Browse Source
0-length arrays are supported in C but forbidden in C++. GCC allows it but clang is more strict: ../../libraries/AP_HAL_Linux/SPIDriver.cpp:75:35: fatal error: no matching constructor for initialization of 'Linux::SPIDeviceDriver [0]' SPIDeviceDriver SPIDeviceManager::_device[0]; ^ ../../libraries/AP_HAL_Linux/SPIDriver.h:20:7: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 0 were provided class SPIDeviceDriver : public AP_HAL::SPIDeviceDriver { ^ ../../libraries/AP_HAL_Linux/SPIDriver.h:20:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 0 were provided ../../libraries/AP_HAL_Linux/SPIDriver.h:25:5: note: candidate constructor not viable: requires 9 arguments, but 0 were provided SPIDeviceDriver(const char *name, uint16_t bus, uint16_t subdev, enum AP_HAL::SPIDeviceType type, uint8_t mode, uint8_t bitsPerWord, int16_t cs_pin, uint32_t lowspeed, uint32_t highspeed); ^ 1 error generated.mission-4.1.18
Lucas De Marchi
9 years ago
1 changed files with 5 additions and 1 deletions
Loading…
Reference in new issue