fix clang

This commit is contained in:
Tomasz Duda 2024-07-24 19:23:22 +02:00
parent 8d8939eaf4
commit 4ae6b8bcbf

View file

@ -39,7 +39,7 @@ struct ISRPinArg {
}; };
ISRInternalGPIOPin ZephyrGPIOPin::to_isr() const { ISRInternalGPIOPin ZephyrGPIOPin::to_isr() const {
auto *arg = new ISRPinArg{}; auto *arg = new ISRPinArg{}; // NOLINT(cppcoreguidelines-owning-memory)
arg->pin = this->pin_; arg->pin = this->pin_;
arg->inverted = this->inverted_; arg->inverted = this->inverted_;
return ISRInternalGPIOPin((void *) arg); return ISRInternalGPIOPin((void *) arg);