Skip to content

Commit 775e5fa

Browse files
committed
More warning disable
1 parent df1d005 commit 775e5fa

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

modules/yup_python/yup_python.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,14 @@ static inline constexpr const char* const PythonModuleName = YUP_PYTHON_STRINGIF
108108

109109
//==============================================================================
110110

111+
YUP_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wattributes")
112+
111113
#include "scripting/yup_ScriptException.h"
112114
#include "scripting/yup_ScriptEngine.h"
113115
#include "scripting/yup_ScriptBindings.h"
114116
#include "scripting/yup_ScriptUtilities.h"
115117
#include "utilities/yup_ClassDemangling.h"
116118
#include "utilities/yup_CrashHandling.h"
117119
#include "utilities/yup_PythonInterop.h"
120+
121+
YUP_END_IGNORE_WARNINGS_GCC_LIKE

tests/yup_audio_basics.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#if defined(__GNUC__) || defined(__clang__)
22
#pragma GCC diagnostic push
3+
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
34
#pragma GCC diagnostic ignored "-Wsubobject-linkage"
45
#endif
56

@@ -58,4 +59,4 @@
5859

5960
#if defined(__GNUC__) || defined(__clang__)
6061
#pragma GCC diagnostic pop
61-
#endif
62+
#endif

tests/yup_core.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#if defined(__GNUC__) || defined(__clang__)
22
#pragma GCC diagnostic push
3+
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
34
#pragma GCC diagnostic ignored "-Wsubobject-linkage"
45
#endif
56

@@ -92,4 +93,4 @@
9293

9394
#if defined(__GNUC__) || defined(__clang__)
9495
#pragma GCC diagnostic pop
95-
#endif
96+
#endif

tests/yup_gui.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#if defined(__GNUC__) || defined(__clang__)
22
#pragma GCC diagnostic push
3+
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
34
#pragma GCC diagnostic ignored "-Wsubobject-linkage"
45
#endif
56

@@ -16,4 +17,4 @@
1617

1718
#if defined(__GNUC__) || defined(__clang__)
1819
#pragma GCC diagnostic pop
19-
#endif
20+
#endif

thirdparty/harfbuzz/harfbuzz.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,16 @@
4444

4545
#pragma once
4646

47+
#if defined(__GNUC__) || defined(__clang__)
48+
#pragma GCC diagnostic push
49+
#pragma GCC diagnostic ignored "-Wempty-body"
50+
#pragma GCC diagnostic ignored "-Wunused-function"
51+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
52+
#endif
53+
4754
#include "upstream/hb.h"
4855
#include "upstream/hb-ot.h"
56+
57+
#if defined(__GNUC__) || defined(__clang__)
58+
#pragma GCC diagnostic pop
59+
#endif

0 commit comments

Comments
 (0)