Skip to content

Commit f18cba6

Browse files
committed
Disable deprecated-declarations warning in cython code.
1 parent f00762f commit f18cba6

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.bazel_fix_commands.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[
2+
{
3+
"regex": "^Check that imports in Go sources match importpath attributes in deps.$",
4+
"command": "bazel",
5+
"args": [ "run", "//:gazelle" ]
6+
},
7+
{
8+
"regex": "^buildozer '(.*)'\\s+(.*)$",
9+
"command": "buildozer",
10+
"args": [ "$1", "$2" ]
11+
}
12+
]

.bazelrc

+1
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ build:gnulike --conlyopt='-std=c99'
256256

257257
# Cython code isn't very clean.
258258
build:clang --per_file_copt='//py_toxcore_c[:/]@-Wno-conditional-uninitialized'
259+
build:clang --per_file_copt='//py_toxcore_c[:/]@-Wno-deprecated-declarations'
259260
build:clang --per_file_copt='//py_toxcore_c[:/]@-Wno-extra-semi-stmt'
260261
build:clang --per_file_copt='//py_toxcore_c[:/]@-Wno-undef'
261262
build:clang --per_file_copt='//py_toxcore_c[:/]@-Wno-unused-macros'

0 commit comments

Comments
 (0)