10000 Get rid of trivial compiler warning. · matplotlib/matplotlib@2ff74db · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ff74db

Browse files
committed
Get rid of trivial compiler warning.
Namely In file included from src/numpy_cpp.h:17, from src/py_converters.h:17, from src/ft2font_wrapper.cpp:4: src/ft2font_wrapper.cpp: In function ‘int PyFT2Font_init(PyFT2Font*, PyObject*, PyObject*)’: src/py_exceptions.h:31:26: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null] 31 | return (errorcode); \ | ^ src/py_exceptions.h:68:27: note: in expansion of macro ‘CALL_CPP_FULL’ 68 | #define CALL_CPP(name, a) CALL_CPP_FULL(name, a, , NULL) | ^~~~~~~~~~~~~ src/ft2font_wrapper.cpp:572:5: note: in expansion of macro ‘CALL_CPP’ 572 | CALL_CPP("FT2Font->set_kerning_factor", (self->x->set_kerning_factor(kerning_factor))); | (multiple times).
1 parent 42e3f92 commit 2ff74db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/py_exceptions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ class exception : public std::exception
6363
return (errorcode); \
6464
}
6565

66-
#define CALL_CPP_CLEANUP(name, a, cleanup) CALL_CPP_FULL(name, a, cleanup, NULL)
66+
#define CALL_CPP_CLEANUP(name, a, cleanup) CALL_CPP_FULL(name, a, cleanup, 0)
6767

68-
#define CALL_CPP(name, a) CALL_CPP_FULL(name, a, , NULL)
68+
#define CALL_CPP(name, a) CALL_CPP_FULL(name, a, , 0)
6969

7070
#define CALL_CPP_INIT(name, a) CALL_CPP_FULL(name, a, , -1)
7171

0 commit comments

Comments
 (0)
0