Skip to content

Commit

Permalink
Fix warnings when compiling on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
ad3154 committed Nov 19, 2023
1 parent 62995b2 commit af16681
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
23 changes: 1 addition & 22 deletions src/JuceManagedWorkingSetCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,34 +194,13 @@ std::shared_ptr<Component> 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<ObjectPointerComponent>(workingSet, *std::static_pointer_cast<isobus::ObjectPointer>(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;
Expand Down
3 changes: 2 additions & 1 deletion src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
** @author Adrian Del Grosso
** @copyright The Open-Agriculture Developers
*******************************************************************************/
#include "isobus/hardware_integration/available_can_drivers.hpp"

#include <JuceHeader.h>
#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"

Expand Down

0 comments on commit af16681

Please sign in to comment.