From af16681da09ddb03aa87a6ecdfc5ccecfb8f78d0 Mon Sep 17 00:00:00 2001 From: Adrian Del Grosso <10929341+ad3154@users.noreply.github.com> Date: Sun, 19 Nov 2023 16:12:34 -0700 Subject: [PATCH] Fix warnings when compiling on Mac --- src/JuceManagedWorkingSetCache.cpp | 23 +---------------------- src/Main.cpp | 3 ++- 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/src/JuceManagedWorkingSetCache.cpp b/src/JuceManagedWorkingSetCache.cpp index 4163bbd..cbd049f 100644 --- a/src/JuceManagedWorkingSetCache.cpp +++ b/src/JuceManagedWorkingSetCache.cpp @@ -194,34 +194,13 @@ std::shared_ptr JuceManagedWorkingSetCache::create_component(std::sha } break; - case isobus::VirtualTerminalObjectType::NumberVariable: - case isobus::VirtualTerminalObjectType::StringVariable: - case isobus::VirtualTerminalObjectType::FontAttributes: - case isobus::VirtualTerminalObjectType::LineAttributes: - case isobus::VirtualTerminalObjectType::FillAttributes: - case isobus::VirtualTerminalObjectType::InputAttributes: - case isobus::VirtualTerminalObjectType::ExtendedInputAttributes: - case isobus::VirtualTerminalObjectType::ColourMap: - case isobus::VirtualTerminalObjectType::ObjectLabelRefrenceList: - { - } - break; - case isobus::VirtualTerminalObjectType::ObjectPointer: { retVal = std::make_shared(workingSet, *std::static_pointer_cast(sourceObject)); } break; - case isobus::VirtualTerminalObjectType::ExternalObjectDefinition: - case isobus::VirtualTerminalObjectType::ExternalReferenceNAME: - case isobus::VirtualTerminalObjectType::ExternalObjectPointer: - case isobus::VirtualTerminalObjectType::Macro: - case isobus::VirtualTerminalObjectType::AuxiliaryFunctionType1: - case isobus::VirtualTerminalObjectType::AuxiliaryInputType1: - case isobus::VirtualTerminalObjectType::AuxiliaryFunctionType2: - case isobus::VirtualTerminalObjectType::AuxiliaryInputType2: - case isobus::VirtualTerminalObjectType::AuxiliaryControlDesignatorType2: + default: { } break; diff --git a/src/Main.cpp b/src/Main.cpp index 4537116..81ead3c 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -3,9 +3,10 @@ ** @author Adrian Del Grosso ** @copyright The Open-Agriculture Developers *******************************************************************************/ +#include "isobus/hardware_integration/available_can_drivers.hpp" + #include #include "ServerMainComponent.hpp" -#include "isobus/hardware_integration/available_can_drivers.hpp" #include "isobus/hardware_integration/can_hardware_interface.hpp" #include "isobus/isobus/can_internal_control_function.hpp"