Skip to content

Commit 5b5345e

Browse files
committed
Ignore discarded restrict qualifiers.
Python-cffi may discard these but they should still work in practice. This might accidentally ignore const discards too, but I've only added this flag to releases for now.
1 parent 1a61123 commit 5b5345e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build_libtcod.py

+1
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ def fix_header(filepath: str) -> None:
320320
"-g",
321321
"-fPIC",
322322
"-Wno-deprecated-declarations",
323+
"-Wno-discarded-qualifiers", # Ignore discarded restrict qualifiers.
323324
],
324325
}
325326

0 commit comments

Comments
 (0)