From efd71aad4f22ec0073d80b8dd296015d3f395aa8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 10 Nov 2020 09:39:42 +1100 Subject: Cleanup: clang-tidy suppress warnings for PyTypeObject.tp_print Clang-tidy behavior changes from Python 3.7 to 3.8+ so it's simplest to suppress the warning in this instance. --- .../python/UnaryFunction1D/UnaryFunction1D_Vec2f/BPy_Normal2DF1D.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_Vec2f/BPy_Normal2DF1D.cpp') diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_Vec2f/BPy_Normal2DF1D.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_Vec2f/BPy_Normal2DF1D.cpp index 1f4a7c9b143..2ece9640340 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_Vec2f/BPy_Normal2DF1D.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_Vec2f/BPy_Normal2DF1D.cpp @@ -74,6 +74,8 @@ PyTypeObject Normal2DF1D_Type = { sizeof(BPy_Normal2DF1D), /* tp_basicsize */ 0, /* tp_itemsize */ nullptr, /* tp_dealloc */ + /* Incompatible with Python3.8+ (deprecated function). + * NOLINTNEXTLINE: modernize-use-nullptr. */ 0, /* tp_print */ nullptr, /* tp_getattr */ nullptr, /* tp_setattr */ -- cgit v1.2.3