File tree Expand file tree Collapse file tree 7 files changed +32
-0
lines changed
Expand file tree Collapse file tree 7 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ /* Silence Warnings for DPP Headers
2+ *
3+ * From: https://github.com/PokemonAutomation/
4+ *
5+ * Include this before every DPP header to silence warnings in those headers.
6+ *
7+ */
8+
9+ #ifndef PokemonAutomation_3rdParty_DPP_SilenceWarnings_H
10+ #define PokemonAutomation_3rdParty_DPP_SilenceWarnings_H
11+
12+
13+ #if 0
14+ #elif _MSC_VER
15+
16+ #pragma warning(disable:4100) // Unreferenced Formal Parameter
17+ #pragma warning(disable:4251) // dll-interface
18+
19+ #elif __GNUC__
20+
21+ #pragma GCC diagnostic ignored "-Wunused-parameter"
22+
23+ #endif
24+
25+
26+ #endif
Original file line number Diff line number Diff line change 44#include < QFileInfo>
55// #include <QTextStream>
66#include < QMessageBox>
7+ #include < dpp/DPP_SilenceWarnings.h>
78#include < Integrations/DppIntegration/DppClient.h>
89#include " Common/Cpp/Exceptions.h"
910#include " Common/Cpp/ImageResolution.h"
Original file line number Diff line number Diff line change 55 */
66
77#include < QFile>
8+ #include < dpp/DPP_SilenceWarnings.h>
89#include < Integrations/DppIntegration/DppClient.h>
910#include " Common/Cpp/PrettyPrint.h"
1011#include " Common/Cpp/Json/JsonValue.h"
Original file line number Diff line number Diff line change 77#include < QHBoxLayout>
88#include < QLabel>
99#include < QPushButton>
10+ #include < dpp/DPP_SilenceWarnings.h>
1011#include " Common/Qt/StringToolsQt.h"
1112// #include "CommonFramework/Globals.h"
1213// #include "CommonFramework/GlobalSettingsPanel.h"
Original file line number Diff line number Diff line change 11#ifdef PA_DPP
22
33#include < set>
4+ #include < dpp/DPP_SilenceWarnings.h>
45#include < dpp/dpp.h>
56#include < Integrations/DppIntegration/DppClient.h>
67#include < Integrations/DppIntegration/DppCommandHandler.h>
Original file line number Diff line number Diff line change 11#ifdef PA_DPP
22
33#include < format>
4+ #include < dpp/DPP_SilenceWarnings.h>
45#include < dpp/dpp.h>
56#include " Common/Cpp/Concurrency/ScheduledTaskRunner.h"
67#include " CommonFramework/Globals.h"
Original file line number Diff line number Diff line change 11#ifdef PA_DPP
22
3+ #include < dpp/DPP_SilenceWarnings.h>
34#include < dpp/dpp.h>
45#include < Integrations/DppIntegration/DppUtility.h>
56#include " CommonFramework/GlobalSettingsPanel.h"
You can’t perform that action at this time.
0 commit comments