Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions 3rdParty/dpp/DPP_SilenceWarnings.h

This file was deleted.

6 changes: 2 additions & 4 deletions 3rdParty/opencv-4.11.0/opencv2/core/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1851,10 +1851,8 @@ template<typename _Tp> inline
_Tp Rect_<_Tp>::area() const
{
const _Tp result = width * height;
if constexpr (std::numeric_limits<_Tp>::is_integer)
{
CV_DbgAssert(width == 0 || result / width == height); // make sure the result fits in the return value
}
CV_DbgAssert(!std::numeric_limits<_Tp>::is_integer
|| width == 0 || result / width == height); // make sure the result fits in the return value
return result;
}

Expand Down
2 changes: 1 addition & 1 deletion SerialPrograms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2449,7 +2449,7 @@ if (MSVC)
PA_DPP
)

target_compile_options(SerialPrograms PRIVATE /FAs /FaAssembly/ /MP /W4 /WX /utf-8)
target_compile_options(SerialPrograms PRIVATE /FAs /FaAssembly/ /MP /W4 /WX /external:anglebrackets /external:W0 /utf-8)
target_compile_options(SerialPrograms PRIVATE /wd5054) # Deprecated enum arithemtic
target_compile_options(SerialPrograms PRIVATE /wd4505) # unreferenced local function has been removed

Expand Down
1 change: 0 additions & 1 deletion SerialPrograms/Source/CommonFramework/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <QFileInfo>
//#include <QTextStream>
#include <QMessageBox>
#include <dpp/DPP_SilenceWarnings.h>
#include <Integrations/DppIntegration/DppClient.h>
#include "Common/Cpp/Exceptions.h"
#include "Common/Cpp/ImageResolution.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

#include <QFile>
#include <dpp/DPP_SilenceWarnings.h>
#include <Integrations/DppIntegration/DppClient.h>
#include "Common/Cpp/PrettyPrint.h"
#include "Common/Cpp/Json/JsonValue.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class PanelInstance{
public:
// Serialization
void from_json();
virtual void from_json(const JsonValue& json){}
virtual void from_json([[maybe_unused]] const JsonValue& json){}
virtual JsonValue to_json() const;

protected:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <QHBoxLayout>
#include <QLabel>
#include <QPushButton>
#include <dpp/DPP_SilenceWarnings.h>
#include "Common/Qt/StringToolsQt.h"
//#include "CommonFramework/Globals.h"
//#include "CommonFramework/GlobalSettingsPanel.h"
Expand Down Expand Up @@ -122,7 +121,7 @@ DiscordIntegrationSettingsOption::DiscordIntegrationSettingsOption()
this->add_listener(*this);
library0.add_listener(*this);
}
void DiscordIntegrationSettingsOption::on_config_value_changed(void* object){
void DiscordIntegrationSettingsOption::on_config_value_changed([[maybe_unused]] void* object){
// cout << this->enabled() << endl;
#if (defined PA_SLEEPY || defined PA_DPP)
bool options_enabled = this->enabled();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifdef PA_DPP

#include <set>
#include <dpp/DPP_SilenceWarnings.h>
#include <dpp/dpp.h>
#include <Integrations/DppIntegration/DppClient.h>
#include <Integrations/DppIntegration/DppCommandHandler.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifdef PA_DPP

#include <format>
#include <dpp/DPP_SilenceWarnings.h>
#include <dpp/dpp.h>
#include "Common/Cpp/Concurrency/ScheduledTaskRunner.h"
#include "CommonFramework/Globals.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#ifdef PA_DPP

#include <dpp/DPP_SilenceWarnings.h>
#include <dpp/dpp.h>
#include <Integrations/DppIntegration/DppUtility.h>
#include "CommonFramework/GlobalSettingsPanel.h"
Expand Down
4 changes: 2 additions & 2 deletions SerialPrograms/Source/ML/Programs/ML_LabelImages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ void LabelImages::load_image_related_data(const std::string& image_path, size_t
return; // no embedding, then no way for us to annotate
}
// see if we can load the previously created labels
const std::string anno_filename = std::filesystem::path(image_path).filename().replace_extension(".json");
const std::string anno_filename = std::filesystem::path(image_path).filename().replace_extension(".json").string();

// ensure the folder exists
std::filesystem::create_directory(ML_ANNOTATION_PATH());
Expand Down Expand Up @@ -284,7 +284,7 @@ void LabelImages::load_image_related_data(const std::string& image_path, size_t
try{
ObjectAnnotation anno_obj = json_to_object_annotation((*json_array)[i]);
m_annotated_objects.emplace_back(std::move(anno_obj));
} catch(JsonParseException & e){
} catch([[maybe_unused]] JsonParseException & e){
m_fail_to_load_annotation_file = true;
QMessageBox box;
box.warning(nullptr, "Unable to Load Annotation",
Expand Down
1 change: 1 addition & 0 deletions vcpkg
Submodule vcpkg added at 6b9738
Loading