Skip to content

Commit

Permalink
Fixed some Linux warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Oct 29, 2023
1 parent d2629d4 commit 9efcb96
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ if(MSVC)
add_compile_options(/MP /wd4244 /wd4311 /wd4003 /wd4047 /wd4477 /wd4068 /wd4133 /wd4311)
add_link_options(/ignore:4286 /ignore:4217)
else()
add_compile_options(-Wall -Wstrict-aliasing -Wuninitialized -Wno-conversion -Wno-overloaded-virtual -Wno-sign-compare -Wno-comment)
add_compile_options(-Wall -Wstrict-aliasing -Wuninitialized -Wno-conversion -Wno-overloaded-virtual -Wno-sign-compare -Wno-comment -Wno-unknown-pragmas -Wnounused-result)
endif()

message(STATUS "Preparing documentation")
Expand Down
2 changes: 0 additions & 2 deletions Libraries/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,6 @@ if(CMAKE_C_COMPILER_ID MATCHES "Clang|GNU")

if(CMAKE_C_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wno-compare-distinct-pointer-types -Wno-implicit-int-conversion)
else()
add_compile_options(-Wno-discarded-qualifiers)
endif()

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-int-conversion -Wno-pointer-sign -Wno-pointer-to-int-cast -Wno-incompatible-pointer-types")
Expand Down
2 changes: 2 additions & 0 deletions Source/ObjectGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ Line<int> ObjectGrid::getObjectIndicatorLine(Side side, Rectangle<int> b1, Recta
return {b1.getCentreX(), b1.getY(), b2.getCentreX(), b2.getBottom()};
}
}

return {};
}

void ObjectGrid::clearIndicators()
Expand Down
6 changes: 0 additions & 6 deletions Source/Tabbar/ResizableTabbedComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ void ResizableTabbedComponent::itemDropped(SourceDetails const& dragSourceDetail
auto patchData = patchWithSize[2].toString();

cnv->dragAndDropPaste(patchData, mousePos, patchSize.x, patchSize.y);
} else if (auto docBrowserItem = dynamic_cast<DocumentBrowserItem*>(dragSourceDetails.sourceComponent.get())) {
// ALEX TODO: not implemented
// we also have an issue that the DocumentBrowserItem is a TreeViewItem which is a Juce class that uses DragAndDropContainer!
// so we wil need to somehow get that using ZoomableDragAndDropContainer?
// browser->pd->loadPatch(file);
// SettingsFile::getInstance()->addToRecentlyOpened(file);
}
}

Expand Down

0 comments on commit 9efcb96

Please sign in to comment.