Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Also allow the -Wzero-as-null-pointer-constant warning
  • Loading branch information
encukou committed Jul 12, 2022
commit 498e8bbac1c0767b1c02b674a8af20f275d247e5
3 changes: 0 additions & 3 deletions Lib/test/setup_testcppext.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ def main():
name = '_testcpp11ext'

cppflags = [*CPPFLAGS, f'-std={std}']
if std == 'c++11':
# Warn when using NULL rather than _Py_NULL in static inline functions
cppflags.append('-Wzero-as-null-pointer-constant')

cpp_ext = Extension(
name,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Python again uses C-style casts for most casting operations when compiled
with C++. This may trigger compiler warnings, if they are enabled with e.g.
``g++ -Wold-style-cast``.
``-Wold-style-cast `` or ``-Wzero-as-null-pointer-constant`` options for ``g++``.