From 75b8831f21f5c789ef49f4d98bb381da9df57614 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Tue, 26 May 2015 14:21:16 -1000 Subject: [PATCH] Removed perfunction optimization setting --- .../posix/include/uavcan_posix/firmware_version_checker.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libuavcan_drivers/posix/include/uavcan_posix/firmware_version_checker.hpp b/libuavcan_drivers/posix/include/uavcan_posix/firmware_version_checker.hpp index beeb9ce8c1..cfeaa03ec5 100644 --- a/libuavcan_drivers/posix/include/uavcan_posix/firmware_version_checker.hpp +++ b/libuavcan_drivers/posix/include/uavcan_posix/firmware_version_checker.hpp @@ -105,7 +105,6 @@ class FirmwareVersionChecker : public uavcan::IFirmwareVersionChecker return rv; } - __attribute__((optimize("O0"))) static int getFileInfo(const char* path, AppDescriptor & descriptor) { using namespace std; @@ -175,7 +174,7 @@ protected: * @return True - the class will begin sending update requests. * False - the node will be ignored, no request will be sent. */ - __attribute__((optimize("O0"))) + virtual bool shouldRequestFirmwareUpdate(uavcan::NodeID node_id, const uavcan::protocol::GetNodeInfo::Response& node_info, FirmwareFilePath& out_firmware_file_path)